leptos/hydration_context
mahmoud-eltahawy 20af4928b2
chore: use workspace edition for examples and crates (#2816)
2024-08-12 19:25:47 -04:00
..
src fix: unique IDs and correct hydration for `<ErrorBoundary/>` (closes #2704) 2024-08-01 19:43:09 -04:00
Cargo.toml chore: use workspace edition for examples and crates (#2816) 2024-08-12 19:25:47 -04:00
Makefile.toml chore(ci): add Makefiles for smaller packages 2024-08-01 19:42:21 -04:00
README.md prep for preview release 2024-08-01 19:40:56 -04:00

README.md

Isomorphic web applications that run on the server to render HTML, then add interactivity in the client, need to accomplish two tasks:

  1. Send HTML from the server, so that the client can "hydrate" it in the browser by adding event listeners and setting up other interactivity.
  2. Send data that was loaded on the server to the client, so that the client "hydrates" with the same data with which the server rendered HTML.

This crate helps with the second part of this process. It provides a [SharedContext] type that allows you to store data on the server, and then extract the same data in the client.