-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Featue/psyneu 91 #57
Featue/psyneu 91 #57
Conversation
src/index.tsx
Outdated
state.isSelection = false; | ||
|
||
// Sets up the diagram engine | ||
// By using useMemo, we ensure that the createEngine() function is only called when the component mounts, | ||
// and the same engine instance is reused on subsequent re-renders. | ||
const engine = useMemo(() => createEngine(), [metaNodes, metaLinks]); | ||
const engine = useMemo(() => createEngine(), []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to check with @ddelpiano if this change is allowed. I remember he added the metaNodes and metaLinks dependency for a reason related with the re-loading of a model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, and yes that is a problem.
Add MetaPortModel and extend Link Factory to Application global props