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

4 Replies
ambitious-aquaOP•2y ago
@TkDodo 🔮
hi sorry to mention if i disturb you.
extended-yellow•2y ago
the callbacks were removed. please read the migration guide
complex-teal•2y ago
so, useEffect is the preferred way now?
extended-yellow•2y ago
no