Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Strategy to make the local state persisting #8

Open
olivierpascal opened this issue May 20, 2020 · 6 comments
Open

Strategy to make the local state persisting #8

olivierpascal opened this issue May 20, 2020 · 6 comments

Comments

@olivierpascal
Copy link

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?

@bostrom
Copy link

bostrom commented Aug 20, 2020

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

@olivierpascal
Copy link
Author

@bostrom Nop

@bmwasonga
Copy link

@bostrom did you ever find a solution for this?

@bostrom
Copy link

bostrom commented Jan 1, 2022

@bmwasonga I didn't 🙁

@bmwasonga
Copy link

How did you resolve your issue?

@bostrom
Copy link

bostrom commented Jan 1, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants