Skip to content

Hooks can only be called from the build method of a widget that mix-in `Hooks #327

Answered by rrousselGit
iTEEECH asked this question in Q&A
Discussion options

You must be logged in to vote

As the error explains, you can't use hooks outside of HookWidgets.

Using hooks inside providers is not allowed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iTEEECH
Comment options

Answer selected by iTEEECH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants