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

Access actions called on store #7

Open
travisdunn opened this issue Aug 26, 2021 · 1 comment
Open

Access actions called on store #7

travisdunn opened this issue Aug 26, 2021 · 1 comment
Labels
question Further information is requested

Comments

@travisdunn
Copy link

Hi, apologies if this is the wrong place for this, but I am wondering if there is a way to access the actions that have been called on a store with this library? Traditional redux has a getActions method available on the store, but I'm not seeing that with this library.

We are trying to test that (non-visible) actions have been called on the store as a side effect in one of our components using Jest.

@shanebdavis
Copy link
Member

I don't think vanilla Redux supports getActions. https://redux.js.org/api/store

Are you thinking about some sort of middleware? There is an example in the H4R readme for how to use middleware with H4R. https://github.com/generalui/hooks-for-redux#tutorial-custom-middleware

@shanebdavis shanebdavis added the question Further information is requested label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants