Store
react-query
Store | react-query | |
---|---|---|
21 | 190 | |
3,079 | 27,869 | |
0.7% | - | |
6.6 | 9.1 | |
6 days ago | almost 2 years ago | |
Kotlin | TypeScript, JS | |
Apache License 2.0 | 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.
Store
- Store5 is in beta!
-
Where is your preferred place on app flow to check user session?
Assuming you're using something like okhttp, I usually just check to see if a refresh token is available on the device, then let an interceptor handle token validity with some type of listener that the view observes on (MainActivity would do this in a single activity app) to handle navigating back to login. For refreshing data I tend to rely on my repositories to handle cache validation as needed. Something like Store can do this for you.
-
Store: A Library For Building Network-Resilient iOS, Android, and Web Applications
Store simplifies reading and writing to and from local and remote data sources. We recommend an underlying persistence library that supports observable queries. Store's SourceOfTruth delegates to, for example, SqlDelight. For more background, here's the talk Mike and Yiğit gave at KotlinConf when premiering Store4: https://www.youtube.com/watch?v=raWdIwsDe-g
Hey! Great question. Yes we moved Store from Dropbox to Mobile Native Foundation. We made changes to the implementation of Store. However the contract is the same as Store4. MutableStore and StatefulStore (in proposal) are net new. But both will delegate to Store. For example, this is the implementation of MutableStore. I have a branch at Dropbox using Store5 alongside Store4. One of our criteria for releasing the Store5 alphas was all Store4 tests needed to pass. We are working on docs and can definitely address these concerns 👍
- A/B testing on Android
-
Offline First Architecture with Single Data Source/Table in the Cloud
Store is a KMP implementation of Google’s offline-first guidance and general solution for reading, writing, and resolving data conflicts
-
Data states for Android / Kotlin
Related project that I really like https://github.com/MobileNativeFoundation/Store
-
Store from Mobile Native Foundation
I've been meaning to look into using the Store library since I heard Yigit Boyar talk about it on this Android Developers Backstage episode I started implementing it today and I'd love to see some samples or articles to better understand how they intend you to use it.
-
So I fetched data from an api using retrofit. I am getting data back as a List. I would like to use those same data in 3 recycler view fragments. What could be a simple way to do that if possible? Thanks
I’ve been a bit interested https://github.com/MobileNativeFoundation/Store in this but could easily be overkill for such a simple scenario
-
Open source vs. the emotional connection to your own project
- the new york times publishes kyt, gizmo and store (which they have now moved to a different organization store 4)
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?
zipline - Run Kotlin/JS libraries in Kotlin/JVM and Kotlin/Native programs
SWR - React Hooks for Data Fetching
componentbox - Reactive server-driven UI for iOS, Android, and web
axios - Promise based HTTP client for the browser and node.js
Resource - Handy states for dynamically obtained data.
redux-saga - An alternative side effect model for Redux apps
abc-kmm-location - Location Service Manager for Kotlin Multiplatform Mobile iOS and Android
rtk-query - Data fetching and caching addon for Redux Toolkit
Journal3 - A thought experiment on architecture, object-oriented programming, and composability. #MakeObjectsGreatAgain
zustand - 🐻 Bear necessities for state management in React
nginx-vod-module - NGINX-based MP4 Repackager
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.