InvokeAI/invokeai/frontend/web/src/features/dnd
psychedelicious f65c8092cb fix(ui): fix issue with node editor state not restoring correctly on mount
If `reactflow` initializes before the node templates are parsed, edges may not be rendered and the viewport may get reset.

- Add `isReady` state to `NodesState`. This is false when we are loading or parsing node templates and true when that is finished.
- Conditionally render `reactflow` based on `isReady`.
- Add `viewport` to `NodesState` & handlers to keep it synced. This allows `reactflow` to mount and unmount freely and not lose viewport.
2023-08-16 09:54:38 +10:00
..
components feat: node editor 2023-08-16 09:54:38 +10:00
hooks fix(ui): fix issue with node editor state not restoring correctly on mount 2023-08-16 09:54:38 +10:00
types feat: node editor 2023-08-16 09:54:38 +10:00
util feat: node editor 2023-08-16 09:54:38 +10:00