react-native-mmkv
react-query
Our great sponsors
react-native-mmkv | react-query | |
---|---|---|
47 | 190 | |
5,125 | 27,869 | |
- | - | |
8.0 | 9.1 | |
4 days ago | almost 2 years ago | |
C++ | TypeScript, JS | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-native-mmkv
-
Understanding security in React Native applications
react-native-mmkv is a wrapper around MMKV that allows you to easily implement secure storage in your app. It is arguably the fastest key-value storage for React Native apps
-
Key/value store with expo
Why do you need to access the db from the file system? Can you just use something like https://github.com/mrousavy/react-native-mmkv ?
- React native for Linux app development in 2023
-
React Native is Multi Threaded
By using libraries like Reanimated, React Native MMKV, and React Native Skia, you leverage the native thread. However, I know there are developers building amazing things who think outside the box. I'm always thrilled when I read engineering blogs from companies like Netflix, Meta, and Shopify. They create solutions beyond the limits.
-
Legend-State 1.0: The fastest React state library
mmkv is not really designed to be used for “heavy” writes, or often changing values. But more as e.g. NSUserDefaults. The storage keeps growing over time which may cause memory issues if used wrongly. Here’s a related github issue: https://github.com/mrousavy/react-native-mmkv/issues/440
-
Open Source Stream/SendBird Alternative?
Persistence - React Native MMKV (supports encryption natively and easily integrates with TanStack Query via persistQueryClient)
-
Best way to store data to device?
if you need to store something small and simple use whatever. if is complex and speed is important use something performant. realmDB, https://github.com/mrousavy/react-native-mmkv and others are good fit for the job.
-
what are some good options for offline databases?
Screw you all, I'll use MMKV as my Local DB: please do not, as explained here.
-
react native async storage is not getting accessed correctly pls help me
Try react native mmkv https://github.com/mrousavy/react-native-mmkv
- Best solution for typing suggestions with a huge array?
react-query
-
20 Essential Parts Of Any Large Scale React App
react-query
-
Some Very Cool (Underrated maybe) React Libraries
React Query: This library makes it easy to manage data in your React applications, from fetching to caching and updating data. It offers a simple, powerful, and flexible API for handling data and keeping your UI in sync with your data. https://github.com/tannerlinsley/react-query
-
Do I need a fetching library in React?
useQuery (react-query) (+) all from above (+) even more features (-) more complex, even the examples are complex, has more aggressive defaults (re-fetching every 2s)
-
Is there any redux-saga equivalent for zustand?
see here Overview
-
React Query Codegen from OpenAPI
Rapini is a new tool that can generate custom React Query hooks using OpenAPI (Swagger) files.
-
React hooks for 28 RxJS operators
React Query is the gold standard for using async data declaratively with hooks. I ended up needing to modify even my simple useTimer hook to work more like useQuery to take multiple keys in order to work as an inner observable for other operators.
-
Goodbye, useEffect - Reactathon 2022
For most situations, I would recommend using a library like React Query. It handles a lot of common data-fetching boiler plate and already accounts for this useEffect() issue. Also, it supports Suspense if you want to use that.
-
Managing application cache with react-query, and code generation.
At this point, I want to move on to the react-query cache management library. Give a brief overview and see how you can improve your developer experience with cache using this library.
-
When to use a hook, and when to use a service?
There isn't the "service" concept in React. If you need to send off data you can just do so with fetch. If you need to load data and cache it so it can be used across components and unmounts, then something like react-query is what I'd recommend. But it's basically a combination of React Context, useEffect, and useState to manage the cache and lifecycle of a request.
-
What would you consider to be a must for a modern 2022 dev stack?
react-query is pretty neat too. I default to that for most projects unless it's something unusual
What are some alternatives?
async-storage - An asynchronous, persistent, key-value storage system for React Native.
SWR - React Hooks for Data Fetching
zustand - 🐻 Bear necessities for state management in React
axios - Promise based HTTP client for the browser and node.js
react-native-debugger - The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools
redux-saga - An alternative side effect model for Redux apps
flipper - A desktop debugging platform for mobile developers.
rtk-query - Data fetching and caching addon for Redux Toolkit
react-native-mmkv-storage - An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
react-native-reanimated - React Native's Animated library reimplemented
Recoil - Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.