当前位置:网站首页>flutter setState() called after dispose()

flutter setState() called after dispose()

2022-06-09 11:15:00 Dense information

Reference resources
The following problem appears

Unhandled Exception: setState() called after dispose(): Page#f39ff(lifecycle state: defunct, not mounted)

setState After interface logout , That must not work
What happens is that the two interfaces switch quickly and frequently ,setState I can't react when I refresh the global variables
Processing mode
Judge mounted Just fine

if(mounted){
    
       setState(() {
    
           ........
       });
     }
    });
原网站

版权声明
本文为[Dense information]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206091023407693.html