refactor: Wave in React 18 StrictMode (#35889)

This commit is contained in:
Luobo Zhang 2022-06-02 18:39:32 +08:00 committed by GitHub
parent 6e55310fca
commit a5074efcb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ export default class Wave extends React.Component<WaveProps> {
context: ConfigConsumerProps;
componentDidMount() {
this.destroyed = false;
const node = this.containerRef.current as HTMLDivElement;
if (!node || node.nodeType !== 1) {
return;