-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 ofType syntax #2209
fix ofType syntax #2209
Conversation
@@ -63,10 +63,6 @@ export class Tree<T = {}> extends React.Component<ITreeProps<T>, {}> { | |||
|
|||
private nodeRefs: { [nodeId: string]: HTMLElement } = {}; | |||
|
|||
constructor(props?: ITreeProps<T>, context?: any) { |
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.
@izikorgad optional props
is not compatible with React typings in strict mode, so we simply have to define the props
argument in all the constructor types.
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.
That's right...
fix ofType syntaxPreview: documentation | landing | table |
fix DRP test flake?Preview: documentation | landing | table |
actually fix DRP testPreview: documentation | landing | table |
#2132 (comment) pointed out a bug in how we were defining our
ofType
methods for generic components. This PR fixes all usages.cc @izikorgad