alibaba/fish-redux

改变global state之后,“看不到”或者“被销毁”页面也会执行build

Open

#404 aberto em 18 de jul. de 2019

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)Dart (7.281 stars) (837 forks)batch import
help wanted

Description

官方的Example,发现在edit page执行change global state之后,主页面也执行了一次build。这个应该还可以理解。

但我发现,我把主页跳转到edit page的方法改成popAndPushName之后,也就是说在跳转之后,主页应该就不存在了,这时候change一下global state,主页仍然会执行一次build(view里面print会有打印,我理解就是build了一次)。

这个恐怕是一个bug。

V0.2.4 flutter:1.7.0 stable

Guia do colaborador