tRPCttRPC
Powered by
infodushaI
tRPC•2y ago•
1 reply
infodusha

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?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

type safety with meta
BeanBBean / ❓-help
2y ago
Type safe errors?
Gary, el Pingüino ArtefactoGGary, el Pingüino Artefacto / ❓-help
14mo ago
Type issue react query with enabled.
wleistraWwleistra / ❓-help
4y ago