gabceb / redux-persist-transform-expire

Add expiration to your persisted store
MIT License
64 stars 19 forks source link

Add defaultState option #2

Closed sospedra closed 7 years ago

sospedra commented 7 years ago

The user can define specific states for after-expired reducers.

Example case scenario:

  1. The app renders an onboarding at the first start up
  2. This onboarding shall never be shown again
  3. The app expires the navigation history every 24 hours
  4. After expiration happens, the history shall not be at /onboarding but /

Hope it fits the project ;)

gabceb commented 7 years ago

Thanks @sospedra. v0.0.2 published to npm :shipit: