refactor(flow)!: make opts for useElementsState optional
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -113,7 +113,7 @@ export const useNodesState = ({ nodes, options }: UseNodesStateOptions = {}): Us
|
||||
}
|
||||
}
|
||||
|
||||
export const useElementsState = ({ edges, nodes, options }: UseElementsStateOptions): UseElementsState => {
|
||||
export const useElementsState = ({ edges, nodes, options }: UseElementsStateOptions = {}): UseElementsState => {
|
||||
const nodesState = useNodesState({ nodes, options })
|
||||
const edgesState = useEdgesState({ edges, options })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user