Open Xsaven opened 6 years ago
@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.