MCPcopy
hub / github.com/yinxin630/fiora / useStore

Function useStore

packages/app/src/hooks/useStore.tsx:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { State, User } from '../types/redux';
3
4export function useStore() {
5 return useSelector((state: State) => state);
6}
7
8export function useUser() {
9 return useStore().user as User;

Callers 12

NofiticationFunction · 0.90
LoadingFunction · 0.90
SelfInfoFunction · 0.90
ChatFunction · 0.90
MessageListFunction · 0.90
InputFunction · 0.90
ChatBackButtonFunction · 0.90
useUserFunction · 0.70
useThemeFunction · 0.70
useLinkmansFunction · 0.70
useFocusLinkmanFunction · 0.70
useFocusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected