-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
M.MMKC.delete is not a function - Android Release Mode #29
Comments
is that actually the error? I don't think I had a typo in there 🤨 |
Okay just checked out the logs, I'm wondering what the prefix means? (aka the |
Also, please create a reproduceable sample app for this, I have no way of debugging that. Can you absolutely not reproduce it in debug mode? Maybe try upgrading react-native to 0.64? |
Sentry does this. Sorry for the small debug information that sentry gives on share mode. |
Debug works like a charm, but on release mode in this specific user, this happens, I will try to upgrade RN to see if I can catch some way to reproduce this. |
This might be related to #28 because the current way of installing the JSI bindings is a bit hacky. I'll rewrite this thing to a TurboModule, which should fix those issues. |
This is currently happening for me even in DEBUG (Android) when I upgrade to 1.0.11. Everything works on version 1.0.10. |
Can you check if the newest version (1.1.6) works for you? Note that it requires some additional installation steps, see INSTALL.md. Also, if you can't import the library see this issue which includes a temporary workaround. I'll find a fix that requires no native changes at all soon 👍 |
@mrousavy is there also a temporary workaround for iOS? I think the JSI bindings problem affect both platforms |
@ChrisEelmaa I haven't seen any issues on the iOS platform, so I don't think there's something wrong there. Are you experiencing crashes? Of course I will still migrate it to TurboModules as soon as possible. |
I am not directly using this library however I have taken a look at how you install the iOS bindings as well your thread (facebook/react-native#31197), and am fairly confident that is not the correct way, as I also install the iOS bindings like that, and occasionally there is a race condition, I managed to reproduce it 2 times out of 300 or so, but essentially what I believe is happening is that the code
gets executed too soon/too late sometimes, and in that case the global.mmkvGet is not available, and won't be available throughout the app |
Exactly, it is not the correct way. The correct way would be by using TurboModules, but they're not fully ready yet so we have to use this JSI install workaround. If there are also race conditions for iOS I could take a look on how I can install it there, if you find something out let me know |
Our app is live in-store with this behavior, any help?
Current behavior
MMKV functions are undefined.
Expected behavior
Should work properly, functions should not be undefined.
Environment
https://sentry.io/share/issue/bc563f396e944720924c2f585ea73eea/
https://sentry.io/share/issue/eba68432d8fb474284e727ce317d061f/
The text was updated successfully, but these errors were encountered: