riot / ssr

Riot.js node Server Side Rendering
MIT License
32 stars 8 forks source link

couple of question about ssr #32

Closed rudinandrey closed 2 years ago

rudinandrey commented 2 years ago

Hi, I will try to change riot version from 3 to 6. And learn it. I'm interesting in SSR and tried to do it. But I got some interesting result. https://github.com/rudinandrey/riot_ssr_question

  1. when I try change content through the mount, it mount new tag near with old which was added with SSR. And I get 2 Hello Riot strings.
  2. when I use hydrate I can't understand how it is neet to send props.

Please help me.

GianlucaGuarini commented 2 years ago

Please test @riotjs/ssr starting from this example https://github.com/riot/examples/tree/gh-pages/ssr

Use the github issues to report bugs with this package. You might use stack overflow to look for help.

Thank you