Comments (2)
I had to change the core of redux-query as well, in order that I never have to make toJS() on the redux store. I saw your proposal as well, but in that case you translate the store to JS each time you pass it to the reducer. This causes new references for every object in the redux-store, which has the effect that you can not make shallow comparisons in the components anymore. Let me try to explain it with an example:
I have the following structure:
"entities": { "users": [ { "id": 1, "name": "Bart" }, { "id": 2, "name": "Lisa" }, { "id": 3, "name": "Maggie" }, ] }
If you would change now only a single user of the list, than you want to have a new reference for entities, users and the user that you changed, but not for the other users.
The changes I made are not compatible with the original library, thats why I made a new package for it. The functionality stays the same and my goal is to merge any changes to redux-query also into the redux-query-immutable project.
from redux-query.
Nice!
Couple of questions. Why not pull request? What problem did you solve? (I'm using immutable js and redux-query just fine)
from redux-query.
Related Issues (20)
- React redux v6 support? HOT 3
- Body is not being stringified and appended to the URL as query params. HOT 4
- Feature Request - Return data on repeated requests. HOT 3
- useRequest and useMutation not working property with custom middlewares HOT 6
- Feature Request - Add useRequests hooks HOT 5
- use options.header to re-memoize query configs HOT 8
- Accessing store in network interface
- useMutation error after Typescript update HOT 1
- Lazy loaded useMutation HOT 7
- Problem with useRequest HOT 2
- Feature request - Debounce HOT 3
- Testing redux-query HOT 1
- Can't use useRequest with Typescript HOT 5
- isPending Bug on useRequest HOT 4
- Mutation Promise chain setup HOT 3
- Problem with CRA code and the query middleware? HOT 1
- Question about where to put side effects HOT 5
- How can I clear all cached queries and fetch it all again after logout. HOT 1
- Handling errors HOT 1
- Need a code snippet on how to implement forceRequest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-query.