Commit 4cd8ac9
committed
refactor(app): ensure immediate UI update after fixture injection
Refactors the `AppBloc`'s `_onAppUserChanged` handler to immediately call `_fetchAndSetUserData` after the `DemoDataInitializerService` successfully creates fixture data for a new user.
This change guarantees that the UI receives the newly populated `UserAppSettings` and `UserContentPreferences` without delay, ensuring that components like the `SavedFiltersBar` are correctly displayed with pre-filled data upon the first launch for an anonymous user in the demo environment.1 parent 72fc982 commit 4cd8ac9
2 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
353 | 358 | | |
354 | 359 | | |
355 | 360 | | |
| |||
408 | 413 | | |
409 | 414 | | |
410 | 415 | | |
411 | | - | |
412 | | - | |
413 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
414 | 422 | | |
415 | 423 | | |
416 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | 472 | | |
477 | 473 | | |
478 | 474 | | |
| |||
0 commit comments