framesurge / perseus

A state-driven web development framework for Rust with full support for server-side rendering and static generation.
https://framesurge.sh/perseus/en-US
MIT License
2.18k stars 89 forks source link

State platform improvements #242

Closed arctic-hen7 closed 2 years ago

arctic-hen7 commented 2 years ago

This is a super-PR for a number of major improvements to the Perseus state platform, including:

Together, especially with the first two, these should be a major improvement to the ergonomics of working with complex state, especially on the browser-side! The aim of these features is to ensure that we don't have to manually invoke spawn_local_scoped or the like, rather using asynchronous handler functions that are automatically called in the browser.

Closes #150 and closes #225.

arctic-hen7 commented 2 years ago

As per this comment, delayed state is being removed from this PR.