We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abe2f0 commit 997cf1fCopy full SHA for 997cf1f
packages/compass-indexes/src/modules/search-indexes.ts
@@ -650,6 +650,15 @@ export const fetchSearchIndexes = (): IndexesThunkAction<
650
};
651
652
653
+export const refreshSearchIndexes = (): IndexesThunkAction<
654
+ Promise<void>,
655
+ FetchSearchIndexesActions
656
+> => {
657
+ return async (dispatch) => {
658
+ await dispatch(fetchIndexes(FetchReasons.REFRESH));
659
+ };
660
+};
661
+
662
export const pollSearchIndexes = (): IndexesThunkAction<
663
Promise<void>,
664
FetchSearchIndexesActions
0 commit comments