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
Im having a trouble trying to update the info of the storage, when i try updating it and the i do a navigate to another screen, when printing the value inside the storage is getting an old data from a previous set to the storage.
Then i print at "ControlHorario" scene the getFromStorage("jwtToken") and im getting old values. Im using drawer for navigation, located at the App.tsx file (Its the main file). Not sure if this is enough explanation or need more info
The text was updated successfully, but these errors were encountered:
This is probably related to timing / navigation stuff - I don't think this is a bug in react-native-mmkv. If it is, could you please create a reproduction without any other libraries, so just react-native-mmkv calls?
This is probably related to timing / navigation stuff - I don't think this is a bug in react-native-mmkv. If it is, could you please create a reproduction without any other libraries, so just react-native-mmkv calls?
So i actually found the issue, was my fault because i was calling an old instance instead of the new one.
Im having a trouble trying to update the info of the storage, when i try updating it and the i do a navigate to another screen, when printing the value inside the storage is getting an old data from a previous set to the storage.
This is inside the login:
This is setToStorage class:
Then i print at "ControlHorario" scene the getFromStorage("jwtToken") and im getting old values. Im using drawer for navigation, located at the App.tsx file (Its the main file). Not sure if this is enough explanation or need more info
The text was updated successfully, but these errors were encountered: