reflex
reflex copied to clipboard
Allow backend-only state vars
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.