ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.56k stars 109 forks source link

`Rendered fewer hooks than expected` Error #342

Closed bahmanworld closed 7 months ago

bahmanworld commented 7 months ago

I got this error every time. I created an AuthContext component, and simply used a const [user, setUser] = useMMKVStorage<User | null>('user', storage, null) hook.

Screenshots Simulator Screenshot - iPhone 15 Pro Max - 2024-01-07 at 14 40 46

Platform Information: