I'm getting the following error, when passing AsyncStorage as the storage engine:
WARN Possible Unhandled Promise Rejection (id: 0):
Error: [AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.
Passed value: undefined
Passed key: [EasyPeasyStore][0]
Here's my store declaration:
import { action, createStore, persist } from "easy-peasy";
import AsyncStorage from "@react-native-async-storage/async-storage";
const store = createStore(
persist({
...my state goes here
}, {
storage: AsyncStorage
})
);