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 6 months ago

Inwerpsel commented 6 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)?