PotatisMannen
PotatisMannen14mo ago

trpc mutations for searching 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?
4 Replies
Nick
Nick14mo ago
Because queries can be driven by state innately and cache locally, they’re just the canonical way to do this
PotatisMannen
PotatisMannenOP14mo ago
Canonical with respect to?
Nick
Nick14mo ago
Not sure what that means
Nick
Nick14mo ago
No description

Did you find this page helpful?