Query data cannot be undefined.
Hello guys, so I have this hook to return some data. the data gets fetched when i check the network tab but the
useQuery is throwing some error Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ["TOP_REMIXERS"]
2 Replies
ambitious-aqua•3y ago
this expression returns potentially
undefined:
like-goldOP•3y ago
Yes just figured. Thank you @TkDodo 🔮