-
Hi, thanks for the awesome library. I just started using it, everything is going well. However I faced one issue, the correct type for a query or mutation is only available if you access the data in an |
Beta Was this translation helpful? Give feedback.
Answered by
ottomated
Nov 3, 2023
Replies: 1 comment 5 replies
-
You would use something like a derived store. const data = trpc.example.query();
const filtered = derived(data, (d) => {
if (!d.isSuccess) return;
return d.filter(/* something */);
}); |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
juztim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would use something like a derived store.