trpc-query-used-for-writes-breaks-reminder-delivery
Using a tRPC query procedure (idempotent GET equivalent) to check and deliver reminders is a contract violation — queries are not guaranteed to fire server-side. In the TaskFlow repo, reminders.checkDueTomorrow only fires when a client manually hits the endpoint, making reminders silent unless a user opens the app on the day before due date. Reminder delivery must use a mutation or a dedicated cron job.
Related
- trpc-query-procedure-used-for-side-effecting-writes
- trpc-query-used-for-side-effects-reminder-anti-pattern
- trpc-query-writing-side-effects-breaks-idempotency
- trpc-query-used-for-side-effectful-reminder-writes
- trpc-query-procedure-performing-writes-contract-violation
- trpc-query-that-writes-is-broken-notification-pattern
- trpc-query-that-writes-violates-idempotency-contract