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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy-Pasting recursive react component can lead to chrome error and freezing #1923

Open
EyMaddis opened this issue May 17, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@EyMaddis
Copy link

commented May 17, 2019

馃悰 bug report

Description of the problem

I tried to slightly adapt an existing codesandbox by copying

<List
    className="List"
    height={150}
    itemCount={1000}
    itemSize={getItemSize}
    width={300}
  >
    {Row}
  </List>

into Line 17.

This leads to the website becoming unresponsive and crashing of the chrome tab.
It only seems to happen if there is a dependency cycle. Pasting the following works:

<List
    className="List"
    height={150}
    itemCount={1000}
    itemSize={getItemSize}
    width={300}
  >
    {SomethingElse}
  </List>

How has this issue affected you? What are you trying to accomplish?

I cannot paste the code I need, I need to manually write the code myself or replace Row which something else and then update it.

Link to sandbox: link (optional)

https://codesandbox.io/s/github/bvaughn/react-window/tree/master/website/sandboxes/variable-size-list-vertical

Your Environment

Software Name/Version
小odesandbox PROD-1557935916-f212746b9
Browser Version 74.0.3729.157 (Official Build) (64-bit)
Operating System MacOS Mojave 10.14.4 (18E226)

@EyMaddis EyMaddis changed the title Copy-Pasting react component can lead to chrome error and freezing Copy-Pasting recursive react component can lead to chrome error and freezing May 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.