reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Allow backend-only state vars

Open picklelo opened this issue 3 years ago β€’ 0 comments

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.

picklelo avatar Jan 22 '23 01:01 picklelo