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:
parent
1904153bba
commit
d9feff085a
11 changed files with 49 additions and 19 deletions
|
@ -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: () => {},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue