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