Skip to content

Provide custom "useReducer" hook #27

@alonfai

Description

@alonfai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions