File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,4 @@ class SettingViewController: ASViewController<SettingListNode> {
22
22
required init ? ( coder aDecoder: NSCoder ) {
23
23
fatalError ( " init(coder:) has not been implemented " )
24
24
}
25
-
26
- override func viewDidLoad( ) {
27
- super. viewDidLoad ( )
28
-
29
- presenter. listStateRelay
30
- . pipe ( to: node)
31
- . disposed ( by: self . node. disposeBag)
32
- }
33
-
34
25
}
Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ class SettingListNode: ASDisplayNode & Knotable {
43
43
self . tableNode. dataSource = self
44
44
}
45
45
46
+ override func didLoad( ) {
47
+ super. didLoad ( )
48
+
49
+ presenter? . listStateRelay
50
+ . pipe ( to: self )
51
+ . disposed ( by: disposeBag)
52
+ }
53
+
46
54
func update( _ state: State ) {
47
55
48
56
self . tableNode. reload ( changes: state. changeSet, completion: { [ weak self] in
You can’t perform that action at this time.
0 commit comments