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
and when this part is executed: storage.set('dummy_list', state, (error)=>{ console.log(error); });
... nothing happens, the file creates, empty, but does not store the data there.
The text was updated successfully, but these errors were encountered:
@Xsaven Can you provide a runnable example that I can use to reproduce?
Based on what I can see, though, you shouldn't be running an async function (like storage.set) in a sync reducer, since you're not waiting for this module to write the data before returning. If your reducer is called often enough, you could be overriding yourself each time.
i have a react reducer:
and when this part is executed:
storage.set('dummy_list', state, (error)=>{ console.log(error); });
... nothing happens, the file creates, empty, but does not store the data there.
The text was updated successfully, but these errors were encountered: