You could simply add a new property to your store with a timestamp (and persist it as well) and during hydrate call you check against the current timestamp. If an expiration time frame is reached, you just don't hydrate the data back to the store (and probably also delete it from persistent place as well)
You could simply add a new property to your store with a timestamp (and persist it as well) and during hydrate call you check against the current timestamp. If an expiration time frame is reached, you just don't hydrate the data back to the store (and probably also delete it from persistent place as well)