You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating the count value in localStorage works as expected. However, after a page reload, the Lit component does not show the value stored in localStorage, but 0 instead. After clicking the increment button, the value in localStorage is read, incremented, and then displayed in the Lit component.
I use nanostores to store a count in
localStorage
:Updating the count value in
localStorage
works as expected. However, after a page reload, the Lit component does not show the value stored inlocalStorage
, but 0 instead. After clicking the increment button, the value inlocalStorage
is read, incremented, and then displayed in the Lit component.I tried to integrate nanostores with
StoreController
andwithStores
, but both don't display the value stored inlocalStorage
.The text was updated successfully, but these errors were encountered: