feat: add app actions (#322)
* feat: add app actions * fix: broken lockfile * fix: app should only load when one is selected and server data not fail when no app found * fix: add missing dependency * fix: format issue
This commit is contained in:
@@ -5,7 +5,7 @@ import useDeepCompareEffect from "use-deep-compare-effect";
|
||||
import type { SpotlightActionData, SpotlightActionGroup } from "./type";
|
||||
|
||||
const defaultGroups = ["all", "web", "action"] as const;
|
||||
const reversedDefaultGroups = [...defaultGroups].reverse();
|
||||
const reversedDefaultGroups = [...defaultGroups].reverse() as string[];
|
||||
const actionsAtom = atom<Record<string, readonly SpotlightActionData[]>>({});
|
||||
export const actionsAtomRead = atom((get) =>
|
||||
Object.values(get(actionsAtom)).flatMap((item) => item),
|
||||
|
||||
Reference in New Issue
Block a user