chore : replace MMKV with native device storage#20
Merged
Szymon20000 merged 4 commits intomargelo:mainfrom Nov 17, 2025
Merged
Conversation
Collaborator
Author
mrousavy
approved these changes
Nov 17, 2025
Member
mrousavy
left a comment
There was a problem hiding this comment.
great stuff! did you do a search for mmkv to make sure it's removed everywhere?
example/src/App.tsx
Outdated
| >([]); | ||
| const [prefetchInfo, setPrefetchInfo] = React.useState<string>(''); | ||
| const PREFETCH_URL = 'https://httpbin.org/uuid'; | ||
| const PREFETCH_URL = 'https://pokeapi.co/api/v2/pokemon/ditto'; |
Collaborator
Author
There was a problem hiding this comment.
https://httpbin.org/uuid api is bit slow and takes around 2-3 seconds to respond. The pokeapi is much faster
Member
There was a problem hiding this comment.
I think @Szymon20000 intentionally chose a slower API to test this
Collaborator
Author
There was a problem hiding this comment.
Okk . I will replace it back
But we should make this 5s check configurable. In my testing I found that sometimes api was taking long and was getting a false positive.
// If a fresh prefetched result exists (<=5s old), return it immediately
FetchCache.getResultIfFresh(key, 5_000L)?.let { cached ->
Collaborator
Author
Member
|
Why there are Errors everywhere on Nitro (ms) column 😅? |
Member
|
Thank you @riteshshukla04 for the contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Replaces MMKV with User Defaults and Shared preferences