-
Notifications
You must be signed in to change notification settings - Fork 55
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
Logging unhandled actions #43
Comments
You mean like: const Component = () => {
const [state, actions] = useCounter();
useEffect(() => {
actions.nonExistentAction();
})
} In that case you will get the standard js error |
Hmm, was really talking async actions. Guessing its not too possible then? |
Not at the moment. To support that we should expose an API to add enhancers, like Redux, so you can wrap actions (and, for instance, add a Sweet-state core is already kind of build with that in mind (see how devtools support is implemented) but never really had the need to add a public API and a dynamic set of enhancers. If you feel up for the challenge, PRs are welcome, otherwise next time I'll have some spare time I'll give it a go. |
I was just wondering if there is currently a way to log actions that are called but not handled/don't exist?
The text was updated successfully, but these errors were encountered: