lit / lit-element

LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
https://lit-element.polymer-project.org
BSD 3-Clause "New" or "Revised" License
4.49k stars 319 forks source link

Persistance? #1185

Closed tamis-laan closed 2 years ago

tamis-laan commented 3 years ago

Would be nice to have some established way to persist component state! Any recommendations for now?

christophe-g commented 3 years ago

I am using https://github.com/gitaarik/lit-state, synchronizing with firebase or localStorage

kevinpschaaf commented 2 years ago

While an interesting feature, this is out of scope for the core Lit library.

sorvell commented 2 years ago

Closing based on the previous suggestion. This is out of scope for the core library. You may want to investigate service workers.

justinfagnani commented 2 years ago

The question could be referring to using local storage, or a state management system like Redux. It would be interesting to think of if there's a nice use for reactive controllers to access local storage.

christophe-g commented 2 years ago

It would be interesting to think of if there's a nice use for reactive controllers to access local storage.

Thought about the same : https://github.com/gitaarik/lit-state/issues/7#issue-867696705