fix provider issue

This commit is contained in:
Fabian Freund
2026-06-02 12:55:49 +02:00
parent 6885c3879a
commit 9e6cc84f87
@@ -275,17 +275,22 @@ class TabViewHeader extends HookConsumerWidget {
// tab list filtered with no visible search box (#421). Whenever we are not // tab list filtered with no visible search box (#421). Whenever we are not
// searching, drop any lingering query so all tabs are shown again. // searching, drop any lingering query so all tabs are shown again.
useEffect(() { useEffect(() {
if (!searchMode.value && if (!searchMode.value) {
ref.exists( WidgetsBinding.instance.addPostFrameCallback((_) {
if (ref.exists(
tabSearchRepositoryProvider(TabSearchPartition.preview), tabSearchRepositoryProvider(TabSearchPartition.preview),
)) { )) {
unawaited( unawaited(
ref ref
.read( .read(
tabSearchRepositoryProvider(TabSearchPartition.preview).notifier, tabSearchRepositoryProvider(
) TabSearchPartition.preview,
.addQuery(''), ).notifier,
); )
.addQuery(''),
);
}
});
} }
return null; return null;