In my React Native app I make an API call that takes about 30s to return, because it's retrieving an object that contains about 4000 items. I want to store that object locally so that the user has to fetch it only the first time they install, rather than every time they log in. Should I use AsyncStorage for this? Or store it as a local JSON file on the device?
React Native: better to store large object in AsyncStore or local JSON file?
420 Views Asked by gkeenley At
1
There are 1 best solutions below
Related Questions in REACTJS
- ussd reader in Recket Native module
- Teams tab application returns SSO error in mobile Outlook
- Github Pages Deployment deploys a blank page
- Is there any way to glow this bulb image like a real light bulb
- Optimize LCP ReactJs
- Page in React only renders elements after refreshing
- Unable to Post Form Data to MongoDB because of picturepath
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- Hooks are not supported inside an async component error in nextjs project using useQuery
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- On the server side, it returns undefined but on the client side, logs the values no problem
- Multilevel dropdown with checkboxes in Select component
- TypeScript Error only on big type only when assigned to a variable
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Data is not filtering in props. Showing passdata.map is not a function
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in REACT-NATIVE
- ussd reader in Recket Native module
- I can't make TextInput to auto expand properly in Android
- expo config plugin use import instead of require
- Custom Sound for Expo Push Notifications Only Works in Foreground
- run RTK dispatch on gesture start with React Native
- Should I set Back-End for my React Native application?
- using infoPlist in app.json for expo project seems to not be working
- Anyone have success configuring react-native-home-indicator?
- KeyboardAvoidingView makes a messy the flexbox
- I am getting lots of errors when building react native app in Xcode
- Search and highlight text of current text in PDFKit Swift
- Flatlist Sometimes Capped at 10 Items Bug
- Is there any way to page transition in react native (stack navigation)
- Screen inside Stack.Navigator not visible in React-Native
- React Native stopwatch implementation slow on iOS
Related Questions in ASYNCSTORAGE
- Unable to decode the token in React Native using jwt-decode
- Why my screen not detected after separate that into different function on react native navigation
- react native asyncStorage with useEffect rendering
- AsyncStorage in Expo/Web cannot find "window"
- Relationship between AWS Amplify Auth and AsyncStorage in React Native
- What will you use to memorized data in react native?
- how to set default lng in i18next but it needs await and i am getting Exception
- Execution failed for task ':react-native-async-storage_async-storage:compileDebugJavaWithJavac'
- Does Firebase encrypt the token before saving it in AsyncStorage?
- Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is x.x.x, expected version is x.x.x
- How to display data from AsyncStorage in react-native?
- Issue with AsyncStorage and Asynchronous Behavior in React Native Functional Component
- react native read data from async-storage in MainApplication.kt
- Fetching AsyncStorage value is getching a binary value
- react native Amplify AsyncStorage Error - AsyncStorageCache - Failed to set item Error: database or disk is full (code 13 SQLITE_FULL)
Related Questions in FILE-STORAGE
- Flask Download File with Get Request
- Databricks: store df row by row - Each row into a json file
- How do i use external file storage for user uploaded files in Django
- ZODB cannot create storage files
- Incorrect volume usage in FSx for ONTAP
- Azure Mounted File Storage is not a valid Virtual Path
- How do I install/emulate object storage locally?
- How to add a new node in a existing MinIo cluster
- How can we create subdirectories under picture directory given by Android OS (From Android 13 onwards)?
- How to solve : All Files Access Permission policy : Access to device storage not required error
- Best practice arround using S3 as file storage for an application with database
- React native upload multiple files (IOS + Android)
- Saved HTML files are not loading images
- AWS File Sharing Services With Temporary Storage
- How to store a file in Laravel from its content
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There can be multiple approaches to deal with it,
If your data is dynamic, then obviously you need the API to load the data. After API calling you can store the data in either
local storageorlocal file systemlocal storagehas a6MBlimit of default, but you can increase this limit,If your data size is large in size like
greater than 6MBthen you can use the file system to store the file, react-native-fs is the library that canhelp you to create and read the file to the local file systemHowever, if your
data is not dynamic, then you can use thelocal JSONfile to store the data, but this is will increase the .apk or .ipa size when you will upload it to the store