trpc mutations for fetching data
Recently was told that using mutations to fetch list data is bad. I can agree with this on a high level from the naming convention, but I'm curious what the deeper reasons are. Are there specific "internal" or architecture related reasons why mutations shouldnt be used to search data at all?
1 Reply
I don't really agree with this especially in the world of trpc
I have an infinite query on my site that requires a useMutation in order for it to work properly and it's fine
It's just the difference of if you want to automatically fetch your data vs manually trigger it