akiran / akiran/react-slick

Invariant Violation: Unable to find node on an unmounted component

Aberta
#1,428 3 comentários 5 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
11.9k
Forks
2.1k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.