akiran / akiran/react-slick

Child components unmounting and remounting

Open
#2,074 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.