dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Fix router hydration

Open ealmloff opened this issue 9 months ago • 1 comments

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

ealmloff avatar May 27 '25 15:05 ealmloff

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

ealmloff avatar May 27 '25 16:05 ealmloff