robwalkerco / redux-persist-filesystem-storage

Redux persist adaptor for React Native filesystem storage
MIT License
196 stars 71 forks source link

Flow issue with setItem #5

Closed coffeeexistence closed 7 years ago

coffeeexistence commented 7 years ago
node_modules/redux-persist-filesystem-storage/index.js:33
 33:       .catch(error => callback(error && error)),
                           ^^^^^^^^^^^^^^^^^^^^^^^^ function call. Function cannot be called on possibly undefined value

Looks like it just needs a simple existence check. Got this error on flow 0.53.1.

robwalkerco commented 7 years ago

Fixed by #6