Skip to content
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

Provide custom "useReducer" hook #27

Open
alonfai opened this issue Jan 15, 2020 · 2 comments
Open

Provide custom "useReducer" hook #27

alonfai opened this issue Jan 15, 2020 · 2 comments

Comments

@alonfai
Copy link

alonfai commented Jan 15, 2020

Hi @pelotom ,

I want to suggest adding support for providing a custom "useReducer" hook inside the useMethods function, which adds supports to other middlewares, not just the default that came with the "react" module. I saw this project "reinspect" https://github.com/troch/reinspect , which provides integration with the redux-devtools extension for time travel debugging, something I used a lot with Redux before switching to context API and the hooks ecosystem.

I suggest adding a PR that will have a "useReducer" function as part of the useMethods hook, that will be optional by default and use the default "useReducer" from 'react' package.

Happy to contribute for this if needed.

@pelotom
Copy link
Owner

pelotom commented Jan 31, 2020

Hi @alonfai, this makes sense and I'd be happy to take a PR.

@gregoryforel
Copy link

Hi @alonfai, have you submitted the PR? It's indeed a great idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants