Ant-design-mobile: Carousel 组件在切换的过程中render会卡死

Created on 11 Aug 2016  ·  8Comments  ·  Source: ant-design/ant-design-mobile

// -> 种族歧视 ?

本地环境

  • antd-mobile 版本:0.7.2
  • 操作系统及其版本:macos 10.11.1
  • 浏览器及其版本: Chrome 51.0.2704.106

    现象描述

Carousel 组件切换的过程中(动画执行的时候),如果触发render(其它组件改变),会导致 Carousel卡死(不能切换),原因猜测是:componentWillUnmount 未对动画清理导致

可重现的在线演示

没得,重现方式就是在 Carousel 执行动画(autoplay比较容易操作)的时候 render,比如改其它组件的state

Most helpful comment

@nikogu 提个PR?

All 8 comments

@silentcloud

这鬼东西有新bug了。。。react-slick 坑中大坑

你有空写个 rc-slick 呼??@nikogu。。。

额,才看到 🐒

@nikogu 提个PR?

这个走马灯 里面的内容 不能是从后台获取的吗?

@jljsj33 在跟进底层依赖的rc-slick ,麻烦 @foriacus 跟进处理下Carousel 组件

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Was this page helpful?
0 / 5 - 0 ratings