MCPcopy
hub / github.com/puckeditor/puck / useAppStore

Function useAppStore

packages/core/store/index.ts:356–360  ·  view source on GitHub ↗
(selector: (state: AppStore) => T)

Source from the content-addressed store, hash-verified

354export const appStoreContext = createContext(createAppStore());
355
356export function useAppStore<T>(selector: (state: AppStore) => T) {
357 const context = useContext(appStoreContext);
358
359 return useStore(context, selector);
360}
361
362export function useAppStoreApi() {
363 return useContext(appStoreContext);

Callers 15

DraggableComponentFunction · 0.90
ComponentListItemFunction · 0.90
ComponentListFunction · 0.90
ContextSlotRenderFunction · 0.90
DragDropContextClientFunction · 0.90
DragDropContextFunction · 0.90
MenuBarFunction · 0.90
FieldLabelInternalFunction · 0.90
AutoFieldInternalFunction · 0.90
useIsFocusedFunction · 0.90
ObjectFieldFunction · 0.90
ArrayFieldItemInternalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected