#use_persisted_state example?

1 messages · Page 1 of 1 (latest)

fringe forge
#

Hey, can anyone point me to a working example of use_prepared_state on v 0.21.0?

My use-case is that I'm rendering a Document on the server with yew::ServerRenderer and then hydrating it client-side with yew::Renderer::...::hydrate(). I want the page hydrated with server side info (ex. search results) without making any calls client-side, my understanding is that use_prepared_state is that way to do that but these docs have me a little confused.

cedar dragon
#

where did you find use_persisted_state in Yew?

fringe forge
#

Actually I'm an idiot, and I meant use_prepared_state . Apologies

cedar dragon