trpc-query-used-for-side-effects-breaks-idempotency-contract
Using a tRPC query procedure (GET semantic) to trigger writes — such as inserting notifications when checking due reminders — violates the idempotency contract of queries. Queries are cacheable and repeatable; placing write side-effects inside them means the effect fires unpredictably based on cache hits and client retry behavior. Side-effecting operations must always be mutation procedures.
Related
- trpc-query-must-not-write-side-effects
- trpc-query-used-for-write-ops-breaks-reminder-delivery
- 2026-04-04-oracle-001-self-architecture-analysis
- r-same-m1-identity-complete-frontend-integration-tests
- r-same-snowflake-only-no-direct-source-connectors
- trpc-query-must-not-write-data
- trpc-query-procedures-must-be-idempotent-reads-only
- trpc-query-used-for-writes-contract-violation
- trpc-query-procedure-used-as-mutation-violates-contract
- trpc-query-that-mutates-violates-idempotency-contract