diff options
| author | MohamedBassem <me@mbassem.com> | 2025-08-24 01:33:20 +0300 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-08-24 01:33:20 +0300 |
| commit | cf06bbb2b56690ccfe29e36cbde0d8a68ad04bad (patch) | |
| tree | 9f139e753139efb9cb4d9a4fd4292ccce756c5f0 /apps/web/lib/store | |
| parent | 9df0f44132e19be9fc975543924aef81b04e9e0b (diff) | |
| download | karakeep-cf06bbb2b56690ccfe29e36cbde0d8a68ad04bad.tar.zst | |
fix(web): fix query getting rest when bookmark preview is closed. fixes #1521
Diffstat (limited to 'apps/web/lib/store')
| -rw-r--r-- | apps/web/lib/store/useInSearchPageStore.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/web/lib/store/useInSearchPageStore.ts b/apps/web/lib/store/useInSearchPageStore.ts new file mode 100644 index 00000000..c433539d --- /dev/null +++ b/apps/web/lib/store/useInSearchPageStore.ts @@ -0,0 +1,13 @@ +import { create } from "zustand"; + +interface InSearchPageState { + inSearchPage: boolean; + setInSearchPage: (inSearchPage: boolean) => void; +} + +export const useInSearchPageStore = create<InSearchPageState>((set) => ({ + inSearchPage: false, + setInSearchPage: (inSearchPage) => { + set({ inSearchPage }); + }, +})); |
