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
// searching, drop any lingering query so all tabs are shown again.
useEffect(() {
if (!searchMode.value &&
ref.exists(
if (!searchMode.value) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (ref.exists(
tabSearchRepositoryProvider(TabSearchPartition.preview),
)) {
unawaited(
ref
.read(
tabSearchRepositoryProvider(TabSearchPartition.preview).notifier,
)
.addQuery(''),
);
unawaited(
ref
.read(
tabSearchRepositoryProvider(
TabSearchPartition.preview,
).notifier,
)
.addQuery(''),
);
}
});
}
return null;