ac3-state-management-examples icon indicating copy to clipboard operation
ac3-state-management-examples copied to clipboard

Strategy to make the local state persisting

Open olivierpascal opened this issue 5 years ago • 6 comments

Summary: Using Apollo Client 3's Reactive Variables API (docs/blog post coming soon), we can store the entire application state locally (and optionally persist it using local storage).

Great!

What will be the best strategy to make the local state persisting (all the local state and only the local state), without having to wrap each write operation?

olivierpascal avatar May 20 '20 09:05 olivierpascal

@olivierpascal did you find a way to automatically persist the reactive variable values over page refresh?

bostrom avatar Aug 20 '20 12:08 bostrom

@bostrom Nop

olivierpascal avatar Aug 24 '20 13:08 olivierpascal

@bostrom did you ever find a solution for this?

bmwasonga avatar Jan 01 '22 11:01 bmwasonga

@bmwasonga I didn't 🙁

bostrom avatar Jan 01 '22 11:01 bostrom

How did you resolve your issue?

bmwasonga avatar Jan 01 '22 12:01 bmwasonga

I just accepted that they won't persist on reload. It wasn't so crucial so didn't bother to dig deeper.

bostrom avatar Jan 01 '22 15:01 bostrom