clauderic / react-tiny-virtual-list

A tiny but mighty 3kb list virtualization library, with zero dependencies 💪 Supports variable heights/widths, sticky items, scrolling to index, and more!
https://clauderic.github.io/react-tiny-virtual-list/
MIT License
2.46k stars 165 forks source link

Updated README with information on how to trigger re-render for sorted data. #35

Closed kakadiadarpan closed 6 years ago

kakadiadarpan commented 6 years ago

From issue #34

When using react-tiny-virtual-list to show a list which can be sorted. On sorting the data, there is no effect on the rendered list. But when scrolled, the list gets re-rendered.

I think this is something that should be there in the documentation.

codecov[bot] commented 6 years ago

Codecov Report

Merging #35 into master will increase coverage by 0.29%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
+ Coverage    93.6%   93.89%   +0.29%     
==========================================
  Files           3        3              
  Lines         125      131       +6     
  Branches       14       14              
==========================================
+ Hits          117      123       +6     
  Misses          8        8
Impacted Files Coverage Δ
src/constants.ts 100% <0%> (ø) :arrow_up:
src/SizeAndPositionManager.ts 92.52% <0%> (ø) :arrow_up:
src/index.tsx 100% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b461b1e...95c9aab. Read the comment docs.