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

Moving module instance number control to Workbench and clearing layout on unmount in App #289

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

rubenthoms
Copy link
Collaborator

@rubenthoms rubenthoms commented Aug 31, 2023

This fixes issues with React 18 calling useEffect in App twice and adding data channels etc. twice.

@rubenthoms rubenthoms added bug Something isn't working enhancement New feature or request labels Aug 31, 2023
@rubenthoms rubenthoms self-assigned this Aug 31, 2023
Copy link
Collaborator

@sigurdp sigurdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove the console.log() calls 👍

@@ -14,14 +14,20 @@ const layout: LayoutElement[] = [];

function App() {
const workbench = new Workbench();
console.debug("render app");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove logging


React.useEffect(() => {
console.debug("app useEffect");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove logging

@rubenthoms
Copy link
Collaborator Author

Just remove the console.log() calls 👍

Hehe, already outdated ;)

@rubenthoms rubenthoms merged commit e60bac0 into equinor:main Aug 31, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants