mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
f65c8092cb
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. |
||
---|---|---|
.. | ||
.husky | ||
.yarn/releases | ||
config | ||
dist | ||
docs | ||
public/locales | ||
scripts | ||
src | ||
static | ||
tests | ||
__init__.py | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.js | ||
.yarnrc | ||
.yarnrc.yml | ||
favicon.ico | ||
index.html | ||
package.json | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts | ||
yarn.lock |