rax-app
rax-app copied to clipboard
fix: keepAliveRoutesRef should set initialRoute & keepalive router should not rerender
- 在获取到 initialRoute 之后,应该更新一下 keepAliveRoutesRef 的值,否则第一个渲染的组件不会包含在 keepAliveRoutesRef 里,导致后面在匹配的时候会出问题。
- KeepAliveRouter 组件最后返回时包裹了 Fragment ,会导致切路由时前一个组件被卸载重渲染 #1021