浏览代码

Set up debugging state when opening the app

crobi 10 年前
父节点
当前提交
be4f6532bd
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      client/src/app.ts

+ 6
- 1
client/src/app.ts 查看文件

27
         appDispatcher = new Dispatcher();
27
         appDispatcher = new Dispatcher();
28
         appActions = new Actions(appDispatcher);
28
         appActions = new Actions(appDispatcher);
29
         appStore = new Store(appDispatcher);
29
         appStore = new Store(appDispatcher);
30
-        appStore.addChangeListener(refresh);
31
 
30
 
31
+        // Set up some initial state for debugging
32
+        // Remove this line once development is finished
33
+        setupTestState();
34
+
35
+        // Start react rendering
36
+        appStore.addChangeListener(refresh);
32
         refresh();
37
         refresh();
33
     }
38
     }
34
 
39
 

正在加载...
取消
保存