Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

iOS 0.19.0 版本toast队列无法清空的问题 #1915

@heiby

Description

@heiby

Description

当weex页面销毁时,如果toast队列不为空,则队列里面的toast无法展示,并且不会被清理,有可能造成下次调用toast时,把旧的toast展示出来。

Environment

版本:weex sdk 0.19.0

Steps to Reproduce

在页面中创建多个toast并在toast没展示完时,退出页面。

reason

产生此bug的关键代码如下:

当weex页面销毁时,weakself是nil,所以这个递归调用不下去了,无法清除队列数据

img

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions