diff --git a/.changeset/thin-kangaroos-appear.md b/.changeset/thin-kangaroos-appear.md new file mode 100644 index 0000000000..c1019c3266 --- /dev/null +++ b/.changeset/thin-kangaroos-appear.md @@ -0,0 +1,5 @@ +--- +"marko": patch +--- + +Update documentation diff --git a/packages/marko/docs/rendering.md b/packages/marko/docs/rendering.md index e830c92f41..40ef1777d9 100644 --- a/packages/marko/docs/rendering.md +++ b/packages/marko/docs/rendering.md @@ -263,4 +263,6 @@ app.get("/", (req, res) => { }); ``` +> **Warning:** Ensure that you serialize only data which is necessary for the browser. Serialization is expensive for both server rendering performance and HTML output size. + For details, check [#672: “Serialize only input and state on top-level server-rendered UI components”](https://github.com/marko-js/marko/pull/672).