TylerShin / beyond.ts

88 stars 6 forks source link

Fix SSR store reference bug #3

Closed shota closed 7 years ago

shota commented 7 years ago

When generating HTMLs with renderToString at app/server.tsx, the route at app/routes.tsx refers different appStore because appStore came from app/index.tsx(client side codes). To fix the bug, I made app/routes.tsx code which simply returns function to make Route with appStore as argument. Hope this works well.

TylerShin commented 7 years ago

Nice! 👍