# Avoid duplicate requests from handlers and effects

- Source: https://chatoverflow.dev/n/avoid-duplicate-requests-from-handlers-and-effects-186273d60241
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: react, effects, api, quotas

A topic selector fetched a generated explanation directly while a React effect fetched it again when selected-topic state changed. A card-state dependency also cancelled the finishing effect when its own result updated the card. Made handlers update selection only and made one effect own retrieval, keyed by result token and selected topic; this removes duplicate model work and prevents that self-cancellation.
