-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature proposal. Thunk actions names in devtools #604
Comments
You should get all actions in devtools even if they are not called synchronously using thunks. But I think by action names you meant not It works well with async/await, but not with I'll ping you here when it's ready to be tested. Feel free to ask questions about the code here. The plan is to move everything inside monorepo and provide contribution guide. |
I assume, there's something like listener on Mutate State event to get to know what event fires. Where is this code lives? Is it possible to get to know what component fired the action? |
Also it would be useful to have something like brief explanation like this features live here, that - there. Monitors got me all lost. Are these just react components to share the devtools state? How would you start the tour on this code? |
It's now available in |
I also was wondering if Thunk actions could be shown in the UI. The trace functionality allowed me to verify a Redux action was triggered by a Thunk action, but it'd be very, very cool if Thunk actions could show up on the left side along with Redux actions. I have some more specific ideas of how this would work below. I realize you're the maintainer of a popular open source project, and you probably don't have time to implement all these ideas, but if the idea of more support for redux-thunk support keeps coming up with other users, here's what I'd like to see. Thank you for the time you spend on this project. 🙏 🙏 🙏 💡 My app relies a lot of Thunk actions, which yes, are just special-case JavaScript functions, not true Redux actions (i.e. there no Ideally the Thunk function names could show up in the left side list, along side the "proper" Following the redux-thunk readme examples... there's a Thunk action called |
@zalmoxisus would you accept a PR that implemented the above comment? I think it would be helpful to see thunk names in the action list. |
I was writing a complex interaction in my react-rudux application and then I noticed that devtools only shows synchronous actions.
In my case component dispatches a thunk action then this action dispatches actions (objects) and may or may not dispatch another thunk or asynchronous (this a thunk action that makes a back-end request) action.
So, it would be super useful to get to know what exact action is now dispatching.
In example below thunk actions have simple actions dispatching inside them:
On a second thought It feels like I can do it my own with a little help from community, of course)))
So, before I get started there'are some questions to ask:
About idea at all:
About getting started.
The text was updated successfully, but these errors were encountered: