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.
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.