perf(home): 冷启动提前拉取首页数据
This commit is contained in:
1 parent
1199db760f
commit
9b31d83e39
7 files changed
+255
-113
No files matched your search
@@ -35,6 +35,7 @@ class CatalogController extends ChangeNotifier {
|
||||
debugError = null;
|
||||
notifyListeners();
|
||||
try {
|
||||
await AppConfig.ready;
|
||||
feed = await repository.fetchHomeFeed();
|
||||
} on ApiException catch (exception) {
|
||||
error = exception.message;
|
||||
|
||||
Reference in new issue
Block a user