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

[Bug]: DetailsList virtualization does not work if is descendant of React.StrictMode #27533

Closed
2 tasks done
nlips opened this issue Apr 12, 2023 · 3 comments
Closed
2 tasks done
Labels
Component: DetailsList Fluent UI react (v8) Issues about @fluentui/react (v8) React 18 Resolution: Soft Close Soft closing inactive issues over a certain period Status: Blocked Resolution blocked by another issue

Comments

@nlips
Copy link

nlips commented Apr 12, 2023

Library

React / v8 (@fluentui/react)

System Info

System:
  OS: Windows 10 10.0.22621
  CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Memory: 2.64 GB / 15.85 GB
Browsers:
  Edge: Spartan (44.22621.525.0), Chromium (112.0.1722.34)
  Internet Explorer: 11.0.22621.1

- `@fluentui/react`: 8.107.4

Are you reporting Accessibility issue?

None

Reproduction

https://react-detailslist-strictmode-virtualization.stackblitz.io

Bug Description

Actual Behavior

Only the first few items appear. When scrolling, the following items are not displayed.

Expected Behavior

When scrolling, the following items must be displayed.

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@github-actions github-actions bot added the Fluent UI react (v8) Issues about @fluentui/react (v8) label Apr 12, 2023
@Dissident26
Copy link

Seems that it's React 17+ problem. Found several articles: facebook/react#24670, https://stackoverflow.com/questions/72295136/userefs-reference-value-change-on-re-render-caused-by-strict-mode-while-usestat.
Faced the same problem, rolling back to React ~16 fixed this.
Providing extra sandbox with package.json: https://codesandbox.io/s/thirsty-bell-pwnv4s?file=/src/dlist.jsx
Uncomment strict mode in index.js to reproduce.

@spmonahan
Copy link
Contributor

Blocked by #27851

@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution: Soft Close Soft closing inactive issues over a certain period label Nov 12, 2023

Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DetailsList Fluent UI react (v8) Issues about @fluentui/react (v8) React 18 Resolution: Soft Close Soft closing inactive issues over a certain period Status: Blocked Resolution blocked by another issue
Projects
None yet
Development

No branches or pull requests

5 participants