-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
intermediate fix: algolia search improvement (#1499)
- Loading branch information
1 parent
f5587b6
commit b77c866
Showing
3 changed files
with
307 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { atom, useAtom } from "jotai"; | ||
|
||
export type ValidSegmentationKeys = "endpoints" | "pages" | "fields"; | ||
|
||
const SEARCH_SEGMENTATION_ATOM = atom<ValidSegmentationKeys>("endpoints"); | ||
|
||
export function useSearchSegmentation(): [ValidSegmentationKeys, (value: ValidSegmentationKeys) => void] { | ||
return useAtom(SEARCH_SEGMENTATION_ATOM); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.