How to get the properties of a node has been removed? #4211
Replies: 2 comments
-
|
I could not find a solution to this, so I ended up requiring the consumer of the Editor component to store and manage the ids of the assets externally. Not a pretty solution, and potentially prone to desync issues, but it is what it is. I'm leaving my solution here in case anyone runs into a similar question: I would propose though, to surface the values of the deleted node in the |
Beta Was this translation helpful? Give feedback.
-
|
@DanielOrtel so the second param to the i.e. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a similar question to #3186, with an added requirements.
I have an an Images node, which contain images uploaded to a CDN, and the node itself contains the ids and urls associated with the images themselves. What I'd like to do, is cleanup the assets from the CDN when a node is removed. The only issue is,
registerMutationListeneronly returns the key of the node, but not the properties which would contain the id of the assets.So, is there a way to access the previous properties of a deleted node when using
registerUpdateListener?Beta Was this translation helpful? Give feedback.
All reactions