bug: beforeHydrateFn and afterHydrateFn are containing functions result instead of function references #5884
Closed
3 tasks done
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
4.19.2
Current Behavior
The expectation for the values of beforeHydrateFn and afterHydrateFn would be that they contain references to functions or noop. However, the variables currently contain the result of the function if beforeHydrate/afterHydrate have been defined in the options. As a result, a TypeError occurs.
Expected Behavior
The variables beforeHydrateFn and afterHydrateFn always contain a reference to a function.
System Info
Steps to Reproduce
npm run build
node dist/ssr-server/index.js
curl -d '{"body": "<html><body></body></html>", "url": "http://localhost:3000/", "labels": [], "settings": []}' -H "Content-Type: application/x-www-form-urlencoded" -X POST http://localhost
in second terminal sessionCode Reproduction URL
https://github.com/tweis/stencil-hydration-typeerror-demo
Additional Information
No response
The text was updated successfully, but these errors were encountered: