12 releases

0.2.0-rc1 Nov 4, 2024
0.2.0-rc0 Oct 22, 2024
0.2.0-gamma Sep 30, 2024
0.2.0-beta4 Aug 31, 2024
0.1.0 Apr 27, 2024

#289 in HTTP server

Download history 134/week @ 2024-07-30 128/week @ 2024-08-06 296/week @ 2024-08-13 162/week @ 2024-08-20 545/week @ 2024-08-27 683/week @ 2024-09-03 775/week @ 2024-09-10 820/week @ 2024-09-17 1437/week @ 2024-09-24 784/week @ 2024-10-01 1512/week @ 2024-10-08 883/week @ 2024-10-15 1104/week @ 2024-10-22 1078/week @ 2024-10-29 1764/week @ 2024-11-05 801/week @ 2024-11-12

4,844 downloads per month
Used in 9 crates (via reactive_graph)

MIT license

38KB
711 lines

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.


lib.rs:

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.

Dependencies

~1–2MB
~39K SLoC