Commit 7a4366c
committed
fix(headlines-feed): dispatch initial fetch event in _HeadlinesFeedPageState
- Move initial fetch event dispatch from router's BlocProvider to _HeadlinesFeedPageState::initState
- Use WidgetsBinding.instance.addPostFrameCallback to ensure BuildContext is fully initialized
- Prevent "Tried to listen to an InheritedWidget in a life-cycle that will never be called again" error1 parent 2325e42 commit 7a4366c
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
| |||
0 commit comments