Skip to Content
React Flow 13 is here! Read the announcement →
ReferenceHooks

useOptionsStore()

Source on GitHub 

import { useOptionsStore } from '@xyflow/react'; export function OptionsLookup() { const minZoom = useOptionsStore((state) => state.minZoom); return ( <div> <p>Current min zoom: {JSON.stringify(minZoom)}</p> </div> ); }

Signature

Parameters:

This function does not accept any parameters.

Returns:
ReactFlowState<Node<Record<string, unknown>, string | undefined>, Edge<Record<string, unknown>, string | undefined>>