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
I'm wondering, how to invalidate the storage after 1 hour, for example? In other words, useStorageReducer should return { items: [] } after 1 hour, re-setting the state eventually stored in the localStorage object.
Is this possible? Thanks!
The text was updated successfully, but these errors were encountered:
Hi, first thanks for this great library!
I'm using this library to store a cart-like state inside my
CartComponent
:I'm wondering, how to invalidate the storage after 1 hour, for example? In other words,
useStorageReducer
should return { items: [] } after 1 hour, re-setting the state eventually stored in thelocalStorage
object.Is this possible? Thanks!
The text was updated successfully, but these errors were encountered: