Only save every minute.

This commit is contained in:
Roger Braun 2017-02-22 10:32:09 +01:00
parent 40fe40d96b
commit aa3512205d

View file

@ -51,7 +51,7 @@ export default function createPersistedState ({
}
return value && value !== 'undefined' ? JSON.parse(value) : undefined
},
setState = throttle(defaultSetState, 5000),
setState = throttle(defaultSetState, 60000),
reducer = defaultReducer,
storage = defaultStorage,
subscriber = store => handler => store.subscribe(handler)