akiran / akiran/react-slick

Child components unmounting and remounting

Ouverte
#2,074 1 commentaire 4 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
11.9k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Guidelines for posting a new issue

* Please replicate your issue with this [CodeSandBox](https://codesandbox.io/s/ppwkk5l6xx) and provide a link to it along with the issue description

The Slider component seems to unmount and the remount all its children. At least all the numbers appearing twice in the console indicates so. I have a component that does some fetch requests in the useEffect(()=>...,[]) part but because of the mentioned behavior my components are make API calls 2 times. I don't know if it is an expected behavior or not.

Sandbox Link: https://codesandbox.io/s/react-slick-playground-forked-oqbhv
![image](https://user-images.githubusercontent.com/46436051/130781682-f2a9b3cc-ddf2-4496-922e-645525bf11f6.png)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.