Comments (8)
Is this something you've seen other libraries support?
No 😸 But I feel no practical need to look up for redux-form
actions.
I feel like a better way to solve this problem is to get the redux log visualizer to support custom (action) => description transforms.
Thanks for idea.
from redux-query.
@rogovdm Haha I feel your pain. But I don't feel good about the idea. Is this something you've seen other libraries support? I feel like a better way to solve this problem is to get the redux log visualizer to support custom (action) => description
transforms.
from redux-query.
First of all, awesome library. I'm using it to generate generic requests to various (feathersjs) endpoints and must say that I am mighty impressed 💯 .
Hope you don't mind but... are you folks saying that it is possible to configure the log visualiser so that the various actions become more distinguishable (by e.g. using a description) ? If so, a pointer would be more than appreciated.
If not, would reconsidering be an option? Why I'm asking:
- I currently don't get how to start a saga for a specific action type (could be my novice level)
- I think it would improve the visuals a lot. A library that supports prefixing is feathers-redux. In this screenshot it is producing results for the
messages
service/API endpoint. For theprojects
service it would become e.g.SERVICES_PROJECTS_FIND_PENDING
I think they have chosen a pretty good default here. Things stay very consistent (and library-recognizable) because the end-user can only pass/set the (optional) service name. I can imagine something similar for redux-query:
@@query/REQUEST_USERS_SUCCESS
@@query/REQUEST_PROJECTS_SUCCESS
from redux-query.
Hey @bravo-kernel! Sorry for the late response. Let me do some research and think about this more and get back to you!
from redux-query.
No problem, thanks for giving this some thought. No rush either, take your time 👍
from redux-query.
@rg4real why don't you just create a catch-all saga and then route redux-query related actions based on their query keys or meta values? You can also dispatch your custom-named actions from there, and IMO it's a much better design due to better separation of concerns.
from redux-query.
@bravo-kernel, for now, I do not think this is something the team is going to invest in terms of new features are concerned.
To solve your problem, I think @karevn has the right idea.
from redux-query.
@rctbusk no problem at all. I had already implemented a saga based alternative before I asked here, I was just hoping I could on-board this project. Anyway, very nice job on the library and your docs inspired me to start using docusuarus as a bridge; https://docusaurus-powershell.netlify.com/). In short.. keep up the good work and thanks again for reconsidering 💯
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.