arashi-dev
dynamic query and mutation
well, their schema is different but extending a common schema.
I handled it using the
useMutation
and useQuary
hooks imported directly from react-query
and used the trpc getQueryKey
method and useContext()
methods.
not sure if it is a good practice, but does the job3 replies