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

improved progressive rendering #93

Merged
merged 3 commits into from
Feb 9, 2022
Merged

improved progressive rendering #93

merged 3 commits into from
Feb 9, 2022

Conversation

naqvitalha
Copy link
Collaborator

Found an improvement to reduce content on first load: Flipkart/recyclerlistview#688

Renamed renderAheadOffset to drawDistance. Issue with using renderAheadOffset (which is RLV prop) is that it overrides some of the progressive rendering behaviour.

After these changes list will only draw whatever in visible in screen area on first load.

@@ -14,7 +14,7 @@ Check out [the Vault project](https://vault.shopify.io/projects/22845) to learn

### Adding a package to your project

Add the package to your project via `yarn add @shopify/recycler-flat-list recyclerlistview@3.1.0-beta.3`, and run pod install in the `ios` directory.
Add the package to your project via `yarn add @shopify/recycler-flat-list recyclerlistview@3.1.0-beta.4`, and run pod install in the `ios` directory.
Copy link
Contributor

Choose a reason for hiding this comment

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

This will need to be changed here, too.

Generally, let's do search and replace when upgrading recyclerlistview to make sure we don't miss anything. We can also point to the microsite for installation instructions instead, so this information is not duplicated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Got it, updated all

@@ -26,7 +26,7 @@
"@babel/runtime": "*",
"react": "*",
"react-native": "*",
"recyclerlistview": "3.1.0-beta.3"
"recyclerlistview": "3.1.0-beta.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be updated in devDependencies, too

@naqvitalha
Copy link
Collaborator Author

@fortmarek I've updated the PR. Can you approve this?

@naqvitalha naqvitalha merged commit 9bb73fc into main Feb 9, 2022
@naqvitalha naqvitalha deleted the renderAheadTweaks branch February 9, 2022 15:44
@shopify-shipit shopify-shipit bot temporarily deployed to production February 14, 2022 21:24 Inactive
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

Successfully merging this pull request may close these issues.

2 participants