You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the renderToString method of the hydrate app it's not possible to pass json to a component for initialization.
Expected behavior:
It should be possible to pass objects/json to a component during server side rendering.
Steps to reproduce:
Related code:
As shown below i would pass a config object to my widget component but this does not work with the tsx syntax in the node environment. Alternatively it should be possible to include complex attributes to the renderToString function.
It would be great to have it implemented, for now passing stringified object to the component looks awkward in output html (especially when the config object in above example is somehow complex)
Stencil version:
I'm submitting a:
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
When using the renderToString method of the hydrate app it's not possible to pass json to a component for initialization.
Expected behavior:
It should be possible to pass objects/json to a component during server side rendering.
Steps to reproduce:
Related code:
As shown below i would pass a config object to my widget component but this does not work with the tsx syntax in the node environment. Alternatively it should be possible to include complex attributes to the renderToString function.
Other information:
The text was updated successfully, but these errors were encountered: