rax-app icon indicating copy to clipboard operation
rax-app copied to clipboard

fix: keepAliveRoutesRef should set initialRoute & keepalive router should not rerender

Open hzyhbk opened this issue 2 years ago • 0 comments

  • 在获取到 initialRoute 之后,应该更新一下 keepAliveRoutesRef 的值,否则第一个渲染的组件不会包含在 keepAliveRoutesRef 里,导致后面在匹配的时候会出问题。
  • KeepAliveRouter 组件最后返回时包裹了 Fragment ,会导致切路由时前一个组件被卸载重渲染 #1021

hzyhbk avatar Nov 16 '22 08:11 hzyhbk