Coder Social home page Coder Social logo

isabella232 / react-virtualized Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobexd/react-virtualized

0.0 0.0 0.0 45.61 MB

React components for efficiently rendering large lists and tabular data

Home Page: http://www.reactvirtualized.com

License: MIT License

JavaScript 97.27% HTML 1.04% CSS 1.69%

react-virtualized's Introduction

Adobe Plugin Toolkit optimized fork of react-virtualized

This fork contains fixes and tuning to enhance performance on UXP based platforms.

Migration to this fork from react-virtualized

This fork is completely API compatible with the main repository of react-virtualized

Just follow these steps

  • run yarn remove react-virtualized
  • run yarn add @adobe/react-virtualized
  • change your require("react-virtualized") expressions to require("@adobe/react-virtualized")
  • make sure you use thekey parameter provided to your rowRenderer/cellRenderer function for each row/cell
  • because of dom recycling cell components are mounted only once so clean cells in componentWillUpdate and/or componentDidUpdate before resuing them
  • dom recycling also results in different visual & dom order but you can use dataOrder parameter to set as a custom attribute on cells and use it to reterieve the visual order

Changes

Mac and iOS not rendering top rows during scroll bounce.

When scrolling up quickly to the top of a list on a platform with bounce sometimes the top rows would not render for a few seconds while the bounce animation completed.

We fixed the problem by treating negative scroll values the same as zero when rendering.

Performance optimization to reuse row elements

This changes the key generating algorithm to reuse keys in a rotating fashion in order to minimize expensive createElement calls when new rows come into the viewport.

NOTE: Reusing elements will cause transient state like focus or input field values not controlled by react state to persist and appear in different rows. If your rows contain focusable input fields then you will want to use your own key values for each list item instead of the rotating keys provided by this fork.

react-virtualized's People

Contributors

ahutchings avatar andrewbranch avatar bvaughn avatar cesarandreu avatar clauderic avatar codingbull avatar danalloway avatar diogofcunha avatar edulan avatar gannunziata avatar gnbaron avatar igorbt avatar krisnye avatar leoasis avatar maxnowack avatar mbrevda avatar mikemcelroy avatar mnquintana avatar mwilliamson avatar nicholasrq avatar nickclaw avatar offsky avatar olslash avatar oyeanuj avatar ravidasari avatar rickhanlonii avatar romulof avatar sanketra avatar trysound avatar wuweiweiwu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.