mirror of
https://github.com/zapstore/zapstore.git
synced 2026-09-14 03:05:06 +00:00
Fix breaking stacks upon updating app
This commit is contained in:
@@ -72,7 +72,7 @@ class AppStackContainer extends HookConsumerWidget {
|
||||
tags: {
|
||||
'#f': {platform},
|
||||
},
|
||||
source: const LocalAndRemoteSource(relays: 'AppCatalog', stream: false),
|
||||
source: const LocalAndRemoteSource(relays: 'AppCatalog'),
|
||||
subscriptionPrefix: 'app-stack',
|
||||
schemaFilter: appStackEventFilter,
|
||||
),
|
||||
@@ -81,7 +81,10 @@ class AppStackContainer extends HookConsumerWidget {
|
||||
final allStacks = appStacksState.models.toList();
|
||||
|
||||
if (allStacks.isEmpty) {
|
||||
return _buildSkeleton(context);
|
||||
if (appStacksState is StorageLoading<AppStack>) {
|
||||
return _buildSkeleton(context);
|
||||
}
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
|
||||
final sortedStacks = _shuffleStacks(
|
||||
|
||||
+2
-2
@@ -629,10 +629,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: logger
|
||||
sha256: a7967e31b703831a893bbc3c3dd11db08126fe5f369b5c648a36f821979f5be3
|
||||
sha256: "25aee487596a6257655a1e091ec2ae66bc30e7af663592cc3a27e6591e05035c"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.6.2"
|
||||
version: "2.7.0"
|
||||
logging:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
Reference in New Issue
Block a user