Skip to content

Warning: Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks #341

Answered by fgatti675
robojiannis asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @robojiannis :)
Effectively, you can't use the hooks inside a callback, like the actions one.
The good news is that within the params that the callback receives there is a context object that includes all the controllers of the CMS, so you can access the storage source from there.
Hope this helps!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by robojiannis
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