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

怎么实现点击关闭tab功能 #14

Open
HuangQiii opened this issue Feb 13, 2019 · 0 comments
Open

怎么实现点击关闭tab功能 #14

HuangQiii opened this issue Feb 13, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@HuangQiii
Copy link

如果根据文档中的api,如果要实现点击,打开一个tab页,切换tab页保持缓存,那是没有问题的。

但是考虑到点击tab页上的关闭,要卸载掉路由,文档里的forceUnmount,在代码中并没有找到,不知是否已经删除了这个api。

而且似乎以下的场景也还是没法实现(没有代码无法看实现细节):
/user/:id路由为这个,然后打开了三个tab页,分别是/user/1, /user/2, /user/3,点击关闭3,如果使用forceUnmount去匹配3时卸载(通过mobx之类的中转值),可是整个LiveRoute不是应该都会卸载吗?那1和2的还会存在吗

@fi3ework fi3ework added the enhancement New feature or request label Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants