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

自定义action在销毁时取不到view等上下文信息 #3544

Closed
1 task done
xiaoke-1 opened this issue Jul 30, 2021 · 2 comments
Closed
1 task done

自定义action在销毁时取不到view等上下文信息 #3544

xiaoke-1 opened this issue Jul 30, 2021 · 2 comments
Assignees

Comments

@xiaoke-1
Copy link
Contributor

xiaoke-1 commented Jul 30, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

动态移除交互时,action在销毁时需要执行一些操作,比如移除element的状态等,但是在调用action的destroy方法前,content下的view已经被置空了,context的destroy方法截图

When dynamically removing an interaction, the action performs some actions such as removing an element's state, but before calling the action's destroy method, the view under the content is already empty

1627641139(1)

What does the proposed API look like?

先执行action的destroy,在置空view等上下文的信息

First execute the action's destroy, in the context of the null view

@hustcc
Copy link
Member

hustcc commented Sep 30, 2021

你的说法是对的,有兴趣来一个 PR 吗?

@hustcc hustcc self-assigned this Sep 30, 2021
@xiaoke-1
Copy link
Contributor Author

xiaoke-1 commented Oct 9, 2021

#3661
@hustcc 提交了一个,不知道提交流程对不对

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

No branches or pull requests

2 participants