Skip to content
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

Merged
merged 7 commits into from
Jul 17, 2023
Merged

Featue/psyneu 91 #57

merged 7 commits into from
Jul 17, 2023

Conversation

emekauja
Copy link
Contributor

Add MetaPortModel and extend Link Factory to Application global props

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(), []);
Copy link
Member

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

Copy link
Member

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.

@ddelpiano ddelpiano merged commit cc29d89 into develop Jul 17, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants