Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Fix state refresh bug

Neeraj Gupta40f34417d9ab
diff --git a/auth/lib/ui/home_page.dart b/auth/lib/ui/home_page.dart
index e370160ae8..b81402439b 100644
--- a/auth/lib/ui/home_page.dart
+++ b/auth/lib/ui/home_page.dart
@@ -461,7 +461,7 @@ class _HomePageState extends State<HomePage> {
return ClipRect(
child: CodeWidget(
- key: ValueKey(code.hashCode),
+ key: ValueKey('${code.hashCode}_$newIndex'),
code,
isCompactMode: isCompactMode,
),
@@ -493,6 +493,7 @@ class _HomePageState extends State<HomePage> {
itemBuilder: ((context, index) {
final codeState = _filteredCodes[index];
return CodeWidget(
+ key: ValueKey('${codeState.hashCode}_$index'),
codeState,
isCompactMode: isCompactMode,
);