-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Two children with the same key warning when using row, lazyLoading and infinite. #1422
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue also occurred to me, and the solution above solve it. |
@houkanshan I've re-opened this bug as a new issue #1987 . Hopefully this will be fixed. |
Checkout this codesandbox:
https://codesandbox.io/s/k5k9q6q07o
The setting is:
Also when switch to last page, it will suddenly change to the first page, and the last item will drop to the second line in first page:
EDIT: The two same keys are generate by
getKey
in track.jshttps:/akiran/react-slick/blob/master/src/track.js#L86
One is from
child.key
, the other isfallbackKey
.Simply change the
fallbackKey
to be something like'fallback-' + fallbackKey
can fix it. But I'm not sure if this is the right way.The text was updated successfully, but these errors were encountered: