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

Dispatch is not a function #47

Open
joaopiramo opened this issue Mar 22, 2021 · 2 comments
Open

Dispatch is not a function #47

joaopiramo opened this issue Mar 22, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@joaopiramo
Copy link

Hey guys, I'm trying to make use of product context dispatch, but I'm always getting "dispatch is not a function".

I am importing these forms
import {useProductDispatch} from 'vtex.product-context / ProductDispatchContext'
or
import {useProduct, useProductDispatch} from 'vtex.product-context'

and I'm declaring the hook this way
const dispatch = useProductDispatch ()

however in all ways I am always receiving feedback
"dispatch is not a function"

@joaopiramo joaopiramo added the bug Something isn't working label Mar 22, 2021
@joaopiramo
Copy link
Author

image

@joaopiramo
Copy link
Author

@klzns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant