react-keeper icon indicating copy to clipboard operation
react-keeper copied to clipboard

怎么让两个路由都指向同一个页面

Open jamieYou opened this issue 8 years ago • 1 comments

<Route path="/topics/:tab" component={HomePage}/>
<Route path="/user" component={HomePage}/>

这个在react-router下,都指向同一个页面,并且路由切换的时候组件不会重新挂载。但keeper会重新挂载。

jamieYou avatar Jun 30 '17 06:06 jamieYou

@jokerapi 是这样的,其实Keeper并不鼓励这种方式,同一个资源对应多个URL并不是一个好的页面组织方式,Keeper缓存的设计也与此有关系。这边是怎样一个需求?

lanistor avatar Jul 02 '17 16:07 lanistor