GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — VirtualizedList CellRenderer optimization by christianbach · Pull Request #21163 · react/react-native

Conversation

@christianbach

@christianbach christianbach commented Sep 18, 2018

Copy link
Copy Markdown

Fixes

Fixes #20174 based of @jasekiw pull request #20208

Changes

  • Remove parentProps from CellRenderer and pass as ordinary props
  • CellRenderer is now a PureComponent

Test Plan:

Tested on a real device with why-did-you-update running to view when the CellRendere component re-rendered. Applied updates to the list items to make sure they still get updated.

Added a test that makes sure the initial onLayout is still called properly.

Release Notes:

[GENERAL] [ENHANCEMENT][VirtualList] - Prevent unnecessary re-renders of the CellRenderer Component.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Bardiamist, ecreeth, brunolemos, Asim13se, tekamunatekalng, and melihberberolu reacted with thumbs up emoji erandagan, axlider, noomorph, cihati, derekstavis, ecreeth, Asim13se, and melihberberolu reacted with hooray emoji axlider, noomorph, cihati, derekstavis, ecreeth, chaitanyadeorukhkar, Asim13se, and melihberberolu reacted with heart emoji axlider, noomorph, cihati, derekstavis, ecreeth, Asim13se, and melihberberolu reacted with rocket emoji
All reactions
  • 👍 6 reactions
  • 🎉 8 reactions
  • ❤️ 8 reactions
  • 🚀 7 reactions
@facebook-github-bot

facebook-github-bot commented Sep 18, 2018

Copy link
Copy Markdown
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

analysis-bot
analysis-bot suggested changes Sep 18, 2018
View reviewed changes

@analysis-bot analysis-bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eslint found some issues. You may run yarn prettier or npm run prettier to fix these.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Libraries/Lists/__tests__/VirtualizedList-test.js Outdated

@analysis-bot analysis-bot Sep 18, 2018

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dot-notation: ["i4"] is better written in dot notation.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 18, 2018
@facebook-github-bot

facebook-github-bot commented Sep 18, 2018

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react-native-bot react-native-bot added 🔶Lists labels Sep 18, 2018
@christianbach christianbach mentioned this pull request Sep 18, 2018
VirtualizedList function optimization #20208
Closed
@christianbach

christianbach commented Sep 20, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

@hramos I have tried to ping @sahrens on this PR and the PR #20208 he's probably just super busy like all of us. But perhaps you know someone else thats suited for reviewing PR related to VirtualizedList?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hramos hramos added 🔶Components and removed 🔶Components labels Sep 21, 2018
matthargett
matthargett approved these changes Sep 25, 2018
View reviewed changes
@hramos

hramos commented Sep 25, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Thanks for adding tests and @matthargett for approving this. I'll import this and put it on the team's review queue, as an additional precaution.

christianbach and Asim13se reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

facebook-github-bot
facebook-github-bot reviewed Sep 25, 2018
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sahrens

sahrens commented Sep 28, 2018

Copy link
Copy Markdown
Contributor

Sorry for the delay - thanks for making this change.

Did you test to make sure that sticky headers in RNTester still work?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Sep 28, 2018

Copy link
Copy Markdown
Author

No unfortunately I didn’t. I’ll check and report the results. But I checked all the list files for additional props and didn’t find any other references. Does the sticky headers implemention need CellRenderer to re-render?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hramos

hramos commented Sep 28, 2018

Copy link
Copy Markdown
Contributor

When this patch is applied, I get a RedScreen on RNTester, specifically on VirtualizedList, VirtualizedSectionList.js:201: Invariant Violation: Tried to get frame for out of range index NaN

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Sep 28, 2018

Copy link
Copy Markdown
Author

Thanks @hramos I just booted up RNTester my self and got the same error. My bad for only testning this on FlatList and SectionLists without Sticky Headers.

hramos reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Sep 28, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

@sahrens I'm I correct that the problems lays in the fact that onLayout is extracted by ScrollViewStickyHeader and since it doesn't get the props from cellRenderer we receive a no cellKey and no index?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Sep 29, 2018

Copy link
Copy Markdown
Author

@sahrens @hramos Updated the PR and now RNTester/SectionList works as expected. Thanks for testing!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Oct 5, 2018

Copy link
Copy Markdown
Author

@sahrens @hramos Any updates? I know your super busy, but a update would be appreciated :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Oct 16, 2018

Copy link
Copy Markdown
Author

@hramos can I do anything to help speed up the review?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

facebook-github-bot
facebook-github-bot reviewed Oct 17, 2018
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Oct 17, 2018
@hramos

hramos commented Oct 17, 2018

Copy link
Copy Markdown
Contributor

@christianbach thanks for adding the tests, I'm merging this.

Canedo, christianbach, axlider, and Asim13se reacted with thumbs up emoji Canedo, christianbach, axlider, and Asim13se reacted with hooray emoji axlider and Asim13se reacted with heart emoji axlider and Asim13se reacted with rocket emoji
All reactions
  • 👍 4 reactions
  • 🎉 4 reactions
  • ❤️ 2 reactions
  • 🚀 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

matthargett
matthargett approved these changes Oct 17, 2018
View reviewed changes

@matthargett matthargett left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for adding a unit test!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@christianbach

christianbach commented Nov 5, 2018

Copy link
Copy Markdown
Author

@hramos any updates? 😸

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sebryu
sebryu reviewed Nov 12, 2018
View reviewed changes
Comment thread Libraries/Components/ScrollView/ScrollViewStickyHeader.js Outdated

@sebryu sebryu Nov 12, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are calling component function _onLayout which is not available from child.props.
I think this line should look like this:

Suggested change
child.props._onLayout(event);
child.props.onLayout(event, child.props.cellKey, child.props.index);

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@christianbach christianbach Nov 14, 2018

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sebryu and thanks for reviewing this!

_onLayout is available and is part of the rewrite of CellRenderer to stop functions being created on every render

_onLayout = (e): void =>
     this.props.onLayout &&
     this.props.onLayout(e, this.props.cellKey, this.props.index);

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@sebryu sebryu Nov 14, 2018

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @christianbach !
I read your code, and I noticed _onLayout function in CellRenderer class. However - you are trying to call it as child.props._onLayout, and simply - _onLayout function is not accessible from child.props. You would need to have ref to CellRenderer to call its functions.

So in this case, my suggested changes should work.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@christianbach christianbach Nov 14, 2018

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad and thanks! I will change it straight away!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sebryu reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@christianbach christianbach Nov 14, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally had the time to do a commit. Tested the change in our app without issues.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@christianbach christianbach Nov 16, 2018

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebryu Do I need to do anything else, perhaps rebase from master?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@sebryu sebryu Nov 16, 2018

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @christianbach !

You have to ping RN guys, I just wanted to create similar issue, so I reviewed your code.
It looks ok for me though 👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

christianbach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@christianbach

christianbach commented Nov 17, 2018

Copy link
Copy Markdown
Author

@sahrens @hramos I think this is now ready to go

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cihati

This comment has been minimized.

Sign in to view
@pull-bot

pull-bot commented May 28, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Messages
📖 📋 Missing Summary - Can you add a Summary? To do so, add a "## Summary" section to your PR description. This is a good place to explain the motivation for making this change.
📖 📋 Missing Test Plan - Can you add a Test Plan? To do so, add a "## Test Plan" section to your PR description. A Test Plan lets us know how these changes were tested.
📖

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

DetailsCATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against 14d41f2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@derekstavis derekstavis mentioned this pull request Jun 21, 2019
0.59.9 Discussion react-native-community/releases#127
Closed
@derekstavis

derekstavis commented Jun 21, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

@christianbach There's a conflict once again. Would you mind fixing it? Also, as soon as the conflict is resolved, can we merge this one or are we missing anything here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Jun 25, 2019

Copy link
Copy Markdown
Author

@derekstavis sure, will try to find some time this week.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach
Merge branch 'master' into virtuallist-optimize-cellrenderer
bf50ba5
@cpojer

cpojer commented Jun 28, 2019

Copy link
Copy Markdown
Contributor

The reason we haven't landed this change yet is mainly because nobody at FB has volunteered to ensure that this won't break various surfaces. We have more than 1000 screens written using React Native and this change can potentially break any number of them by not updating things properly and we have no way of automatically detecting it :(

brunolemos and derekstavis reacted with confused emoji
All reactions
  • 😕 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sunnylqm

sunnylqm commented Jun 28, 2019

Copy link
Copy Markdown
Contributor

How about make this optimization an option but not enabled by default.

creambyemute reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cpojer

cpojer commented Jun 28, 2019

Copy link
Copy Markdown
Contributor

If we don't change the default behavior this will be much easier to land, yes!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@azizhk

azizhk commented Jul 3, 2019

Copy link
Copy Markdown

I tried my hand at not making this the default behavior and accepting an additional prop flattenParentProps, but I couldn't figure out how to retain the current onLayout behavior.

Changes: https://github.com/christianbach/react-native/compare/virtuallist-optimize-cellrenderer...azizhk:virtuallist-optimize-cellrenderer?expand=1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brunolemos

brunolemos commented Jul 4, 2019

Copy link
Copy Markdown
Contributor

@cpojer: We have more than 1000 screens written using React Native and this change can potentially break any number of them by not updating things properly

Can't anyone add extraData={{}} on all FlatLists like Spencer suggested? Should garantee the lists will update and allow merging this pr.

christianbach, derekstavis, and azizhk reacted with thumbs up emoji
All reactions
  • 👍 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

brunolemos added a commit to devhubapp/devhub that referenced this pull request Jul 5, 2019
@brunolemos
[Performance] Apply VirtualizedList optimization from pull request
6311a54
react/react-native#21163

#126
@azizhk @christianbach
Fix flow error tests (#1)
14d41f2
@cihati

cihati commented Jul 24, 2019

Copy link
Copy Markdown

@christianbach just wanted to say that I admire your tenacity to get this PR merged (after close to a year!), and I am really looking forward to it! Many thanks for putting in the effort.

christianbach, friedolinfoerder, and chaitanyadeorukhkar reacted with heart emoji
All reactions
  • ❤️ 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@azizhk

azizhk commented Jul 24, 2019

Copy link
Copy Markdown

I was able to contain most of the changes to be opt-in and not be the default behavior.
The diff with @christianbach 's branch is here and with facebook's master branch is here.

Though this has a bit of hacky JS context trickery which might make it brittle. If acceptable, would like some guidance on how to write some good tests so that this does not break easily.

let virtualizedList = this;
this._onCellLayout = function (e) {
  virtualizedList._onCellLayoutGen(e, this.cellKey, this.index)
}
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chaitanyadeorukhkar

chaitanyadeorukhkar commented Aug 14, 2019

Copy link
Copy Markdown

This PR is beautiful. I hope this gets merged.

CellRenderer re-renders is one of the massive bottlenecks for our performance where we have a VirtualizedList with over 4000 rows.

Thank you everyone who is involved in this PR. Hope I can help here too.

christianbach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sunnylqm

sunnylqm commented Aug 16, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@azizhk If that is too diffcult, how about something like this:

export default (props) => {
   return props.experimentalOptimazation ?  
      <ExperimentalFlatList {...props} /> : <FlatList {...props} />
}
christianbach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@azizhk

azizhk commented Aug 16, 2019

Copy link
Copy Markdown

@sunnylqm Thanks. We also have changes in ScrollViewStickyHeader.js so for that we would need to make changes in a lot of Components (like ScrollView). That gave me a different idea, wrapping inside an isExperimentalOptimization Context Provider. Something like:

<VirtualListExperimentalOptimization.Provider>
  <VirtualList {...props} />
</VirtualListExperimentalOptimization.Provider>

This can be passed down to ScrollViewStickyHeader. Let me whip up something over the weekend which agrees to the "not changing the default behavior" requirement.

christianbach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brunolemos

brunolemos commented Aug 18, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@cpojer: If we don't change the default behavior this will be much easier to land, yes!

I have an idea to get this merged:

-const { extraData } = this.props
+const { extraData = {} } = this.props

By changing the default value of extraData to a new object reference, we keep the current FlatList behavior: update on every render.

If the user wants to enable the optimization they just need to pass extraData={null} or some memoized value.

Ideally this would not be necessary, but since internal facebook code is blocking the merge of this pull request this may be a good middle ground solution. No facebook code change necessary while still allowing people to opt in.

christianbach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@azizhk

azizhk commented Aug 20, 2019

Copy link
Copy Markdown

I was able to retain the default behavior for onLayout as well: master...azizhk:exp_context_virtuallist

@cpojer Let me know if looks good and I'll create a PR and add tests.

sunnylqm, christianbach, and Eyesonly88 reacted with thumbs up emoji Eyesonly88 reacted with heart emoji nsantacruz reacted with eyes emoji
All reactions
  • 👍 3 reactions
  • ❤️ 1 reaction
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christianbach

christianbach commented Nov 4, 2019

Copy link
Copy Markdown
Author

Perhaps it's time to close this PR?

brunolemos and derekstavis reacted with confused emoji
All reactions
  • 😕 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cpojer

cpojer commented Nov 4, 2019

Copy link
Copy Markdown
Contributor

Alright, I'll close it but I still think it is valueable to make this change in a backwards-compatible way – I'm fine with introducing new props with new names that we can migrate people to.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cpojer cpojer closed this Nov 4, 2019
@sunnylqm

sunnylqm commented Nov 5, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@cpojer There is a change in a backwards-compatible way, please review master...azizhk:exp_context_virtuallist
And I dont think @christianbach really means to close the pr but remind you to push this forward.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@azizhk azizhk mentioned this pull request Nov 5, 2019
Experimental VirtualList Optimization #27115
Closed
@azizhk

azizhk commented Nov 5, 2019

Copy link
Copy Markdown

@cpojer @christianbach I've created my PR: #27115. Hoping we can continue the discussion there. Please close it, if it does not seem viable.

christianbach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

khadorkin pushed a commit to khadorkin/devhub that referenced this pull request Mar 5, 2020
@brunolemos
Re-add patch to fix VirtualizedList memoization
e86c7dd
react/react-native#21163
@halaei halaei mentioned this pull request Apr 11, 2021
Optimize VirtualizedList #31327
Closed
facebook-github-bot pushed a commit that referenced this pull request Apr 20, 2021
Andrei Shikov @facebook-github-bot
React Native sync for revisions c9aab1c...f7cdc89
de318cd
Summary:
This sync includes the following changes:
- **[f7cdc89](react/react@f7cdc8936 )**: Also turn off enableSyncDefaultUpdates in RN test renderer ([#21293](react/react#21293)) //<Ricky>//
- **[4c9eb2a](react/react@4c9eb2af1 )**: Add dynamic flags to React Native ([#21291](react/react#21291)) //<Ricky>//
- **[9eddfbf](react/react@9eddfbf5a )**: [Fizz] Two More Fixes ([#21288](react/react#21288)) //<Sebastian Markbåge>//
- **[11b0759](react/react@11b07597e )**: Fix classes ([#21283](react/react#21283)) //<Sebastian Markbåge>//
- **[96d00b9](react/react@96d00b9bb )**: [Fizz] Random Fixes ([#21277](react/react#21277)) //<Sebastian Markbåge>//
- **[81ef539](react/react@81ef53953 )**: Always insert a dummy node with an ID into fallbacks ([#21272](react/react#21272)) //<Sebastian Markbåge>//
- **[a4a940d](react/react@a4a940d7a )**: [Fizz] Add unsupported Portal/Scope components ([#21261](react/react#21261)) //<Sebastian Markbåge>//
- **[f4d7a0f](react/react@f4d7a0f1e )**: Implement useOpaqueIdentifier ([#21260](react/react#21260)) //<Sebastian Markbåge>//
- **[dde875d](react/react@dde875dfb )**: [Fizz] Implement Hooks ([#21257](react/react#21257)) //<Sebastian Markbåge>//
- **[a597c2f](react/react@a597c2f5d )**: [Fizz] Fix reentrancy bug ([#21270](react/react#21270)) //<Sebastian Markbåge>//
- **[15e779d](react/react@15e779d92 )**: Reconciler should inject its own version into DevTools hook ([#21268](react/react#21268)) //<Brian Vaughn>//
- **[4f76a28](react/react@4f76a28c9 )**: [Fizz] Implement New Context ([#21255](react/react#21255)) //<Sebastian Markbåge>//
- **[82ef450](react/react@82ef450e0 )**: remove obsolete SharedArrayBuffer ESLint config ([#21259](react/react#21259)) //<Henry Q. Dineen>//
- **[dbadfa2](react/react@dbadfa2c3 )**: [Fizz] Classes Follow Up ([#21253](react/react#21253)) //<Sebastian Markbåge>//
- **[686b635](react/react@686b635b7 )**: Prevent reading canonical property of null ([#21242](react/react#21242)) //<Joshua Gross>//
- **[bb88ce9](react/react@bb88ce95a )**: Bugfix: Don't rely on `finishedLanes` for passive effects ([#21233](react/react#21233)) //<Andrew Clark>//
- **[343710c](react/react@343710c92 )**: [Fizz] Fragments and Iterable support ([#21228](react/react#21228)) //<Sebastian Markbåge>//
- **[933880b](react/react@933880b45 )**: Make time-slicing opt-in ([#21072](react/react#21072)) //<Ricky>//
- **[b0407b5](react/react@b0407b55f )**: Support more empty types ([#21225](react/react#21225)) //<Sebastian Markbåge>//
- **[3971371](react/react@39713716a )**: Merge isObject branches ([#21226](react/react#21226)) //<Sebastian Markbåge>//
- **[8a4a59c](react/react@8a4a59c72 )**: Remove textarea special case from child fiber ([#21222](react/react#21222)) //<Sebastian Markbåge>//
- **[dc108b0](react/react@dc108b0f5 )**: Track which fibers scheduled the current render work ([#15658](react/react#15658)) //<Brian Vaughn>//
- **[6ea7491](react/react@6ea749170 )**: Fix typo in comment ([#21214](react/react#21214)) //<inokawa>//
- **[b38ac13](react/react@b38ac13f9 )**: DevTools: Add post-commit hook ([#21183](react/react#21183)) //<Brian Vaughn>//
- **[b943aeb](react/react@b943aeba8 )**: Fix: Passive effect updates are never sync ([#21215](react/react#21215)) //<Andrew Clark>//
- **[d389c54](react/react@d389c54d1 )**: Offscreen: Use JS stack to track hidden/unhidden subtree state ([#21211](react/react#21211)) //<Brian Vaughn>//
- **[c486dc1](react/react@c486dc1a4 )**: Remove unnecessary processUpdateQueue ([#21199](react/react#21199)) //<Sebastian Markbåge>//
- **[cf45a62](react/react@cf45a623a )**: [Fizz] Implement Classes ([#21200](react/react#21200)) //<Sebastian Markbåge>//
- **[75c6165](react/react@75c616554 )**: Include actual type of `Profiler#id` on type mismatch ([#20306](react/react#20306)) //<Sebastian Silbermann>//
- **[1214b30](react/react@1214b302e )**: test: Fix "couldn't locate all inline snapshots" ([#21205](react/react#21205)) //<Sebastian Silbermann>//
- **[1a02d27](react/react@1a02d2792 )**: style: delete unused isHost check ([#21203](react/react#21203)) //<wangao>//
- **[782f689](react/react@782f689ca )**: Don't double invoke getDerivedStateFromProps for module pattern ([#21193](react/react#21193)) //<Sebastian Markbåge>//
- **[e90c76a](react/react@e90c76a65 )**: Revert "Offscreen: Use JS stack to track hidden/unhidden subtree state" ([#21194](react/react#21194)) //<Brian Vaughn>//
- **[1f8583d](react/react@1f8583de8 )**: Offscreen: Use JS stack to track hidden/unhidden subtree state ([#21192](react/react#21192)) //<Brian Vaughn>//
- **[ad6e6ec](react/react@ad6e6ec7b )**: [Fizz] Prepare Recursive Loop for More Types ([#21186](react/react#21186)) //<Sebastian Markbåge>//
- **[172e89b](react/react@172e89b4b )**: Reland Remove redundant initial of isArray ([#21188](react/react#21188)) //<Sebastian Markbåge>//
- **[7c1ba2b](react/react@7c1ba2b57 )**: Proposed new Suspense layout effect semantics ([#21079](react/react#21079)) //<Brian Vaughn>//
- **[316aa36](react/react@316aa3686 )**: [Scheduler] Fix de-opt caused by out-of-bounds access ([#21147](react/react#21147)) //<Andrey Marchenko>//
- **[b4f119c](react/react@b4f119cdf )**: Revert "Remove redundant initial of isArray ([#21163](react/react#21163))" //<Sebastian Markbage>//
- **[c031970](react/react@c03197063 )**: Revert "apply prettier ([#21165](react/react#21165))" //<Sebastian Markbage>//
- **[94fd121](react/react@94fd1214d )**: apply prettier ([#21165](react/react#21165)) //<Behnam Mohammadi>//
- **[b130a0f](react/react@b130a0f5c )**: Remove redundant initial of isArray ([#21163](react/react#21163)) //<Behnam Mohammadi>//
- **[2c9fef3](react/react@2c9fef32d )**: Remove redundant initial of hasOwnProperty ([#21134](react/react#21134)) //<Behnam Mohammadi>//
- **[1cf9978](react/react@1cf9978d8 )**: Don't pass internals to callbacks ([#21161](react/react#21161)) //<Sebastian Markbåge>//
- **[b9e4c10](react/react@b9e4c10e9 )**: [Fizz] Implement all the DOM attributes and special cases ([#21153](react/react#21153)) //<Sebastian Markbåge>//
- **[f8ef4ff](react/react@f8ef4ff57 )**: Flush discrete passive effects before paint ([#21150](react/react#21150)) //<Andrew Clark>//
- **[b48b38a](react/react@b48b38af6 )**: Support nesting of startTransition and flushSync (alt) ([#21149](react/react#21149)) //<Sebastian Markbåge>//

Changelog:
[General][Changed] - React Native sync for revisions c9aab1c...f7cdc89

jest_e2e[run_all_tests]

Reviewed By: rickhanlonii

Differential Revision: D27740113

fbshipit-source-id: 6e27204d78e3e16ed205170006cb97c0d6bfa957
@lunaleaps lunaleaps mentioned this pull request Aug 4, 2021
Experimental VirtualList Optimization (#27115) #31947
Closed
lunaleaps pushed a commit to lunaleaps/react-native that referenced this pull request Aug 4, 2021
@azizhk @facebook-github-bot
Experimental VirtualList Optimization (react#27115)
bd4bdfc
Summary:
This is VirtualList Optimization done by christianbach in react#21163 enabled behind a prop: `experimentalVirtualizedListOpt` with backward compatibility.

Fixes react#20174 based of jasekiw pull request react#20208

## Changelog

// TODO:

[CATEGORY] [TYPE] - Message

Pull Request resolved: react#27115

Test Plan:
// TODO:
Add tests related to backward compatibility. (Will need help)

Differential Revision: D30095387

Pulled By: lunaleaps

fbshipit-source-id: 1c41e9e52beeb79b56b19dfb12d896a2c4c49529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

5 more reviewers
@facebook-github-bot facebook-github-bot facebook-github-bot left review comments
@sebryu sebryu sebryu left review comments
@analysis-bot analysis-bot analysis-bot requested changes
@hramos hramos hramos approved these changes
@matthargett matthargett matthargett approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Needs: Imported Diff Waiting on Meta

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

VirtualizedList- inefficient function passing for CellRenderer

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@christianbach @facebook-github-bot @hramos @sahrens @cihati @stanislav-halyn @noomorph @pull-bot @sunnylqm @axlider @reubenab @angelo-hub @derekstavis @cpojer @azizhk @brunolemos @chaitanyadeorukhkar @matthargett @sebryu @analysis-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.