Skip to content

CircleProgress 动态更新进度在ios中闪烁 #3157

Open
@weishenlan

Description

@weishenlan

NutUI React 包名

@nutui/nutui-react

NutUI React 版本号

2.7.10

平台

weapp

重现链接

没有链接,就是下面的简单代码

重现步骤

`
const maxRecordingTime = 30

/** 拍摄时长 */

const [recordingTime, setRecordingTime] = useState(0)

useEffect(() => {
timerRef.current = setInterval(() => {
setRecordingTime(prev => {
const newTime = prev + 1
if (newTime >= maxRecordingTime) {
stopRecording()
}
return newTime
})
}, 1000)
return () => {
if (timerRef.current) {
clearInterval(timerRef.current)
}
}
}, [])

`

期望的结果是什么?

不要闪烁

实际的结果是什么?

会时不时的闪烁

环境信息

"@tarojs/taro": "3.6.35",
"@nutui/nutui-react-taro": "^2.3.10",

其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions