Skip to content
#

component

Here are 3,735 public repositories matching this topic...

a616781689
a616781689 commented Nov 28, 2019

看了fish-redux的todoList demo,发现里面连接全局状态的方法是使用visitor

visitor: (String path, Page<Object, dynamic> page) {
      /// 只有特定的范围的 Page 才需要建立和 AppStore 的连接关系
      /// 满足 Page<T> ,T 是 GlobalBaseState 的子类
      if (page.isTypeof<GlobalBaseState>()) {
        /// 建立 AppStore 驱动 PageStore 的单向数据连接
        /// 1. 参数1 AppStore
        /// 2. 参数2 当 AppStore.state 变化时, PageStore.state 该如何变化
     

Improve this page

Add a description, image, and links to the component topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the component topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.