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

Fix reeact 17.0.2 #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

farandal
Copy link

No description provided.

@vercel
Copy link

vercel bot commented Aug 15, 2021

Someone is attempting to deploy a commit to a Personal Account owned by @mathew-kurian on Vercel.

@mathew-kurian first needs to authorize it.

@@ -441,25 +442,6 @@ export default class OrgChart<T> extends React.Component<
return { prevProps: props };
}

componentWillMount() {
Copy link
Author

Choose a reason for hiding this comment

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

Not sure if I'm breaking some backward compatibility case by removing this, thus, for my react typescript environment, I had to totally remove componentWillMount, and componentWillReceiveProps , in order to avoid errors.

@@ -100,8 +100,9 @@ class SingleFishboneLayoutAdapter extends LayoutStrategyBase {
this.SpecialRoot = new TreeNodeView(
Box.Special(Box.None, realRoot.Element.Id, true)
);
(this.SpecialRoot.Level = this.RealRoot.Level),
(this.SpecialRoot.ParentNode = this.RealRoot);

Copy link
Author

Choose a reason for hiding this comment

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

As far as I can see, this syntax does practically the same; thus I had to change it as Typescript 4.5.0-dev was not capable to recognise the syntax.

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.

None yet

1 participant