Skip to content
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

Return success state for set and recrypt calls #583

Open
antondalgren opened this issue Sep 26, 2023 · 0 comments · May be fixed by #584
Open

Return success state for set and recrypt calls #583

antondalgren opened this issue Sep 26, 2023 · 0 comments · May be fixed by #584

Comments

@antondalgren
Copy link

The underlying MMKV library returns booleans on these calls wether the set or recrypt was made successfully or not. It would be nice if these boolean values were to be exposed in the JS world as the application developer may want to do different actions based on the outcome of these method calls.

https://github.com/Tencent/MMKV/blob/272e5aa1fb57b4ee8cc0ff37e70b7885d99832a7/Core/MMKV_IO.cpp#L1101

https://github.com/Tencent/MMKV/blob/272e5aa1fb57b4ee8cc0ff37e70b7885d99832a7/Core/MMKV_IO.cpp#L557

@antondalgren antondalgren linked a pull request Sep 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant