mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +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
|
@ -7,7 +7,17 @@ import { observer } from 'mobx-react-lite';
|
|||
interface Props {}
|
||||
|
||||
const FlowPage: FC<Props> = observer(() => {
|
||||
const { updates, nodes, heroes, recent, isFluid, toggleLayout, onChangeCellView } = useFlow();
|
||||
const {
|
||||
updates,
|
||||
nodes,
|
||||
heroes,
|
||||
recent,
|
||||
isFluid,
|
||||
toggleLayout,
|
||||
onChangeCellView,
|
||||
loadMore,
|
||||
isSyncing,
|
||||
} = useFlow();
|
||||
|
||||
return (
|
||||
<FlowContextProvider
|
||||
|
@ -15,6 +25,8 @@ const FlowPage: FC<Props> = observer(() => {
|
|||
recent={recent}
|
||||
heroes={heroes}
|
||||
nodes={nodes}
|
||||
loadMore={loadMore}
|
||||
isSyncing={isSyncing}
|
||||
onChangeCellView={onChangeCellView}
|
||||
>
|
||||
<FlowLayout isFluid={isFluid} onToggleLayout={toggleLayout} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue