stencil-site icon indicating copy to clipboard operation
stencil-site copied to clipboard

Hydrate App: Incorrect/Missing renderToString Options

Open guidoknoll opened this issue 3 years ago • 0 comments

The renderToString Options in the Guides/Hydrate App Chapter are incorrect and not well documented.

The afterHydrate and beforeHydrate Options with type boolean already seemed a bit off to me so i analyzed the hydrate build. These are functions with the mocked document as a parameter, so that you can modify the mocked window object before rendering for example.

The other options seem correct and self-explanatory to me.

I'll try opening a PR the next days!

guidoknoll avatar Aug 04 '20 10:08 guidoknoll