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