swr
swr copied to clipboard
onDiscarded is never called
Bug report
Description / Observed Behavior
swr doesn't call onDiscarded callback. Request is deduplicated but onDiscarded is never called.
Expected Behavior
swr should call onDiscarded callback.
Repro Steps / Code Example
Additional Context
SWR version - 2.2.4^ React version - 16 and 18 fail