Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite scroll does not work with React Strict Mode #653

Open
delasource opened this issue Sep 13, 2024 · 1 comment
Open

Infinite scroll does not work with React Strict Mode #653

delasource opened this issue Sep 13, 2024 · 1 comment

Comments

@delasource
Copy link

delasource commented Sep 13, 2024

Subject of the issue

Within the tag <React.StrictMode> a DateRangePicker component does not work. It can not track the scrollposition to show the full calender. Only "months-prop +1" months are visible.
CleanShot_2024-09-14_003438

[BUG] Bug Reproduce Steps

Create a vite project and add the infinite-scroll-example code under the StrictMode-Element.

[BUG] Expected behaviour

Look like on demo page.

Environment

Package Version: 2.0.1 (also tested 1.4.0, and also tested @iroomitapp 's fork)
React version: ^18
Node version: v22.7.0 (but using bun 1.1.12 as package manager)
Browser: Brave

@fnnzzz
Copy link

fnnzzz commented Sep 17, 2024

The same problem (1.4.0)

Also, I encountered the next problem with enabled strict mode if months={1.3}:
image

React: v18.3.1
Node: v22.8.0
Package Version: 1.4.0
Browser: Firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants