Inwerpsel / use-theme-editor

A React theme editor
GNU General Public License v3.0
4 stars 0 forks source link

Rethink use of LocalStorage #62

Open Inwerpsel opened 9 months ago

Inwerpsel commented 9 months ago

Now that history is restored from IndexedDb, it's probably no longer needed to also store it in LocalStorage.

For now it was preserved because it can be read synchronously, so allows populating the latest state before the history is replayed.

Does the combination of IndexedDb + LocalStorage still make sense?

Any other ways of working with state to look at (maybe session storage)?