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

React-Keeper不兼容ReactV16的数组传递方式 #98

Open
tun100 opened this issue Nov 18, 2018 · 0 comments
Open

React-Keeper不兼容ReactV16的数组传递方式 #98

tun100 opened this issue Nov 18, 2018 · 0 comments

Comments

@tun100
Copy link

tun100 commented Nov 18, 2018

Hi,刚刚踩了个坑,发现添加cache属性之后,路由切换总是会多出一个另一个组件的内容,比如每个页面内容是:

props=>[
<div>first{props.path}</div>,
<div>second{props.path}</div>
]    

你会发现切换之后没有同时隐藏掉第二个元素,也就是说,react-keeper只处理顶部root或者是数组的第一个,我觉得这个应该不算是bug,毕竟也没有哪个开发者会特意传一个数组给router当作route组件。
但是如果要实现 write route anywhere的话,这个可能不方便,因为传递数组理论上route也可以一起管理的,^_^

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

1 participant