Skip to content
Discussion options

You must be logged in to vote

@dolto this is a confirmed bug tracked in #4631. wasm-split + fullstack SSR has never been tested together (the test harness at packages/playwright-tests/wasm-split-harness is client-only, no fullstack features).

root cause: the server and client see split components differently during hydration.

on the server (not wasm32), the maybe_wasm_split! macro in config-macros/src/lib.rs takes the else branch and renders the component synchronously. your full Home HTML is in the SSR response.

on the client (wasm32), the router macro wraps the component in a LazyLoader that calls use_resource(|| async { MODULE.load().await }).suspend(). during the initial virtual_dom.rebuild() with skip_mutations =…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dolto
Comment options

Answer selected by dolto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants