https://reactflow.dev/api-reference/hooks/use-store-api
useStoreApi() - React Flow
In some cases, you might need to access the store directly. This hook returns the store object which can be used on demand to access the state or dispatch...
reactflow