Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSR Support for Core API #56

Open
futursolo opened this issue Dec 2, 2022 · 1 comment
Open

SSR Support for Core API #56

futursolo opened this issue Dec 2, 2022 · 1 comment
Labels
A-core Area: Bounce Core API C-enhancement New feature or request
Milestone

Comments

@futursolo
Copy link
Member

#13 delivers SSR Support for Helmet API and Query API whilst this issue aims to provide SSR support for the Core API.

This is not included in #13 as SSR is mostly useful with public facing pages which are indexed by SEO.
States in those pages are usually obtainable from client-sided states.

@futursolo futursolo added C-enhancement New feature or request A-core Area: Bounce Core API labels Dec 2, 2022
@futursolo futursolo added this to the v0.6 milestone Dec 3, 2022
@futursolo
Copy link
Member Author

futursolo commented Aug 2, 2023

An atom / slice should be able to be marked as #[bounce(transitive)], this allows their values to be set with states initialiser / server-side default and send to the client side automatically via use_transitive_state.

For a state to be transitive, it needs to be #[derive(Serialize, Deserialize)].
Mutating states in SSR should not be supported as this should only happen with effects and effects do not run in SSR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Bounce Core API C-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant