fix provider issue
This commit is contained in:
+14
-9
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user