Expand description
Isomorphic web applications that run on the server to render HTML, then add interactivity in the client, need to accomplish two tasks:
- Send HTML from the server, so that the client can “hydrate” it in the browser by adding event listeners and setting up other interactivity.
- 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.
Structs§
- CsrShared
Context browser
- The shared context that should be used in the browser while hydrating.
- Hydrate
Shared Context browser
- The shared context that should be used in the browser while hydrating.
- Serialized
Data Id - A unique identifier for a piece of data that will be serialized from the server to the client.
- SsrShared
Context - The shared context that should be used on the server side.
Traits§
- Shared
Context - Information that will be shared between the server and the client.
Type Aliases§
- Pinned
Future - Type alias for a boxed
Future
. - Pinned
Local Future - Type alias for a boxed
Future
that is!Send
. - Pinned
Stream - Type alias for a boxed
Stream
.