dioxus
dioxus copied to clipboard
Fix router hydration
This PR serializes the initial server router state for the client to fix some hydration issues. This helps with some client-side only navigator properties like can_go_back and fixes 404 routes in SSG where the server rendered URL and client url are different
Fixes #4047 Fixes #3644
This PR works when serving with the version of the CLI in https://github.com/DioxusLabs/dioxus/pull/4111. Unforunately both serving SSG and bundling are currently broken in the git and alpha version of the CLI