reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Allow client states

Open julien777z opened this issue 3 years ago β€’ 1 comments

Right now the states are saved on the server, so if I refresh the page, the previous state is still intact.

I don't always want this, for example, I may want to make a calculator app that every time I refresh the page, the history and state are blank.

This would also be consuming a lot of memory for bigger applications if everything is saved to the server.

julien777z avatar Jan 31 '23 02:01 julien777z

Yes this is defiantly possible to implement will look into it

Alek99 avatar Jan 31 '23 04:01 Alek99

I think for this use case you can use an on_load event where you call self.reset() which should reset the state.

picklelo avatar Jun 15 '23 18:06 picklelo