ReactFlowJsonObject
Source on GitHub (opens in a new tab)
A JSON-compatible representation of your flow. You can use this to save the flow to a database for example and load it back in later.
export type ReactFlowJsonObject<T, U> = {
nodes: Node<T>[];
edges: Edge<U>[];
viewport: Viewport;
};
Fields
Name | Type |
---|---|
# nodes | Node<T>[] |
# edges | Edge<U>[] |
# viewport |