You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a refetch query is executed from useRefetchableFragment there is a temporaryRetain of the cache entry, however this is not paired with a corresponding permanentRetain during the components lifecycle.
This means after 5 minutes of idle time the cache entry is cleared, and upon the next render the entry will be read from the store and reinvoke the onComplete callback of any attached observable.
When a refetch query is executed from
useRefetchableFragment
there is a temporaryRetain of the cache entry, however this is not paired with a corresponding permanentRetain during the components lifecycle.This means after 5 minutes of idle time the cache entry is cleared, and upon the next render the entry will be read from the store and reinvoke the
onComplete
callback of any attached observable.Here is an example reproducing the bug kyle-painter/relay-examples@09965ae. To reproduce:
Press the 'Refetch' button and observe the onComplete alert dialog is shown.
Wait 5 minutes.
Press the 'Rerender' button and observe the onComplete alert dialog is unexpectedly shown again.
The text was updated successfully, but these errors were encountered: