10 releases

new 0.2.0-gamma3 Oct 14, 2024
0.2.0-gamma2 Oct 8, 2024
0.2.0-gamma Sep 30, 2024
0.2.0-beta4 Aug 31, 2024
0.1.0 Apr 27, 2024

#10 in #client-side

Download history 127/week @ 2024-06-24 80/week @ 2024-07-01 21/week @ 2024-07-08 27/week @ 2024-07-15 189/week @ 2024-07-22 134/week @ 2024-07-29 155/week @ 2024-08-05 288/week @ 2024-08-12 165/week @ 2024-08-19 392/week @ 2024-08-26 711/week @ 2024-09-02 807/week @ 2024-09-09 755/week @ 2024-09-16 1395/week @ 2024-09-23 942/week @ 2024-09-30 1220/week @ 2024-10-07

4,430 downloads per month
Used in 5 crates (via reactive_graph)

MIT license

37KB
691 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
~40K SLoC