Ant-design-pro: 在BasicLayout里加入转场动画,使用TransitionGroup和CSSTransition在console里会报redirect错,请问下怎么解决呢~

Created on 23 May 2019  ·  7Comments  ·  Source: ant-design/ant-design-pro

在BasicLayout里加入TransitionGroup包裹children后,跳转页面console里面报You tried to redirect to the same route you're currently on: "/dashboard"类似的错误,尝试在AuthorizedRoute中用Switch包裹Route没作用,请问下如何能解决这种问题呢~

All 7 comments

@sorrycc umi 现在有转场动画的方案吗?

@sorrycc 按照umi的配置在children外包裹的TransitionGroup和CSSTransition,会报出
Check the render method of TransitionGroup.
umi的路由动效在pro这里是不是不适用?

@chenshuai2144 请问下 现在antd pro有预计做路由动效的计划么~

暂时没有,路由动效感觉华而不实。我们更希望加快加载速度

跪求专场动画

@sorrycc 自己做umi 插件可以实现转场动画么

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RichardStark picture RichardStark  ·  3Comments

skyFi picture skyFi  ·  3Comments

Yoping picture Yoping  ·  3Comments

ghost picture ghost  ·  3Comments

zhongjiewu picture zhongjiewu  ·  3Comments