gabceb / redux-persist-transform-expire

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

need a demo #4

Closed qingtong234 closed 6 years ago

qingtong234 commented 7 years ago

Hi, @gabceb:

I find these code is the repo:

if (dateToUnix(new Date(expireDate)) < dateToUnix(new Date())) {
        this.update(config.defaultState);
      }

but I can't find where the update come from, can you give me some suggesion?

gabceb commented 7 years ago

Details please

sospedra commented 7 years ago

It's from https://github.com/substack/js-traverse

In this scenario is replacing the expired state for the config.defaultState one