logging hooks for actions and state
See original GitHub issueIn development I want to hook into choo to log all actions as they happen, and having access to state so I can bind it to window.state
- it would make debugging a lot better
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Using React Hooks for state management - LogRocket Blog
The useReducer Hook allows you to update parts of your React component's state when certain actions are dispatched.
Read more >How To Manage State with Hooks on React Components
In this step, you'll set the initial state on a component by assigning the initial state to a custom variable using the useState...
Read more >How to manage state in a React app with just Context and ...
The useReducer hook returns two parameters, state and dispatch . state contains the state that is used in the component and it is...
Read more >Redux Logger—Your Next Debugging Tool (The Art of Logging)
It's an extension that tracks the application's state changes. You can trace, jump, skip any action that has been dispatched. It's good for...
Read more >LogRocket/redux-logger - GitHub
Instead of guessing why errors happen, or asking users for screenshots and log dumps, LogRocket lets you replay Redux actions + state, network...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Forgot to say thanks for the background!
Think all that’s needed is a
*
operator ineffects
. E.g.For toggling can wrap in an
if (window.debug)
inside theeffect