Can I execute code when a query is garbage collected? #872
Unanswered
danielbrauer
asked this question in
General
Replies: 1 comment
-
Is this perhaps the sort of thing this PR is intended to enable? #867 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm making an app which decrypts remote image data before displaying it in the browser. The decrypted result is stored using
URL.createObjectURL()
, but this will leak memory if not released at some point usingURL.revokeObjectURL()
. I would love to use React Query to handle fetching and caching this data, but it's not clear to me how I would make sure that the URLs are revoked at the appropriate time.Beta Was this translation helpful? Give feedback.
All reactions