mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
refactor: Wave in React 18 StrictMode (#35889)
This commit is contained in:
parent
6e55310fca
commit
a5074efcb0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user