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

Allow backend-only state vars #307

Closed
picklelo opened this issue Jan 22, 2023 · 0 comments · Fixed by #390
Closed

Allow backend-only state vars #307

picklelo opened this issue Jan 22, 2023 · 0 comments · Fixed by #390
Labels
enhancement Anything you want improved
Milestone

Comments

@picklelo
Copy link
Contributor

Currently all state vars must be JSON serializable to send the the frontend.

However sometimes it could be useful to have state fields that are only on the backend (i.e. generator objects) that never are called within render functions. These fields would be accessible within the event handlers, but not from the frontend. And they wouldn't have to adhere to the serialization requirement.

@Alek99 Alek99 added the enhancement Anything you want improved label Jan 24, 2023
@picklelo picklelo added this to the v0.1.14 milestone Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Anything you want improved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants