Giter Site home page Giter Site logo

Comments (8)

RohovDmytro avatar RohovDmytro commented on May 20, 2024 1

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.

ryanashcraft avatar ryanashcraft commented on May 20, 2024

@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.

bravo-kernel avatar bravo-kernel commented on May 20, 2024

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:

  1. I currently don't get how to start a saga for a specific action type (could be my novice level)
  2. 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 the projects service it would become e.g. SERVICES_PROJECTS_FIND_PENDING

image

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.

rctbusk avatar rctbusk commented on May 20, 2024

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.

bravo-kernel avatar bravo-kernel commented on May 20, 2024

No problem, thanks for giving this some thought. No rush either, take your time 👍

from redux-query.

karevn avatar karevn commented on May 20, 2024

@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.

rctbusk avatar rctbusk commented on May 20, 2024

@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.

bravo-kernel avatar bravo-kernel commented on May 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.