infodusha
infodusha4w ago

Make meta in react-query type-safe.

So right now I have to write something like
*.useQuery({}, {
meta: {
mfa: false
} satisfies ReactQueryMeta
});
*.useQuery({}, {
meta: {
mfa: false
} satisfies ReactQueryMeta
});
Is there a way to force all the queries to have this meta typed with my type?
0 Replies
No replies yetBe the first to reply to this messageJoin