Invariant Violation: Unable to find node on an unmounted component
Aperta
- Lingua principale
- JavaScript
- Stelle
- 11.9k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Thrown this error when run the test case if i am using component inside react-slick.
```
import React, { Component } from 'react';
import Slider from 'react-slick';
Class MyComponent extends Component {
render() {
return(
Test1
Test2
Test3
)
}
}
```
Test Case
```
it('Example', () => {
const renderedValue = renderer
.create()
.toJSON();
expect(renderedValue).toMatchSnapshot();
});
```
If i run the test case it shown the following error,
Invariant Violation: Unable to find node on an unmounted component.
This issue will happen only when i add the div elements inside the slider alone. Can any one give some suggestion to resolve this?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.