infodusha
infodusha8mo 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

Did you find this page helpful?