1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added useMemos to get data hooks

This commit is contained in:
Fedor Katurov 2022-01-09 19:28:23 +07:00
parent 1904153bba
commit d9feff085a
11 changed files with 49 additions and 19 deletions

View file

@ -6,6 +6,8 @@ export interface FlowContextProps {
recent: IFlowNode[];
heroes: IFlowNode[];
nodes: IFlowNode[];
isSyncing: boolean;
loadMore: () => Promise<unknown>;
onChangeCellView: (id: INode['id'], flow: FlowDisplay) => void;
}
@ -14,6 +16,8 @@ export const FlowContext = createContext<FlowContextProps>({
recent: [],
heroes: [],
nodes: [],
isSyncing: false,
loadMore: async () => {},
onChangeCellView: () => {},
});