Skip to content

Conversation

@gbj
Copy link
Collaborator

@gbj gbj commented Nov 8, 2025

#3988 (included in 0.8.5) introduced support for async hydration to support hydrating routes that included lazy-loaded WASM. However, this accidentally meant duplicating the hydration code for all AnyView types, which bloats the WASM binary size for all applications, including those not using lazy-loading.

This can be resolved by:

  1. removing hydrate_async for applications that don't activate a lazy feature
  2. and even better, removing hydrate for applications that do use it

However, requiring a lazy feature is a breaking change. In the meantime, I'd encourage people to try out this PR as a smallish patch, to see if it resolves the binary-size increase.

@gbj gbj added this to the 0.9 milestone Nov 8, 2025
@gbj gbj added the breaking label Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants