If you have a pending read query when a mutation with an optimisticResponse
is fired, the optimisticResponse doesn’t get applied.
Minimal example here: ecstatic-mestorf-3pu0dn - CodeSandbox on line 139. There’s an artificial 1 second delay link added to make the effect more obvious.
The same behavior appears to occur with direct cache writes as well; writes will not cause a re-render if there is a pending read query.
Is this the intended behaviour? And if so, is there a way to bypass it?