Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to determine the reason for a card teardown? #594

Open
hpohlmeyer opened this issue Nov 30, 2017 · 0 comments
Open

[Question] How to determine the reason for a card teardown? #594

hpohlmeyer opened this issue Nov 30, 2017 · 0 comments
Labels

Comments

@hpohlmeyer
Copy link

Is there a way to determine the reason, why a card is torn down?

The reason I am asking is, that I am working on an image card, that copies the image to another location when used. If the card is torn down by deleting it in the editor, I want to remove the copied image, but if the whole editor is torn down due to a switch to another post, I don’t want to delete the copied image.

Essentially I need to know in the env.onTeardown callback, if the teardown is caused by deleting the section, or by the editor.destroy function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants