I could not understand why I can not add onSuccess on useQuery
here is the code.

4 Replies
conscious-sapphireOP•2y ago
@TkDodo 🔮
hi sorry to mention if i disturb you.
unwilling-turquoise•2y ago
the callbacks were removed. please read the migration guide
yappiest-sapphire•2y ago
so, useEffect is the preferred way now?
unwilling-turquoise•2y ago
no