From 2c3576a50a03da236000fe0d16ff1b36691d7863 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Sat, 30 Apr 2016 10:27:53 -0700 Subject: [PATCH] Refactor connection/list stuff Reviewed By: devknoll Differential Revision: D3233991 fb-gh-sync-id: bd10dd2856da6b8fb3bac7a8ec3a7e34eeb58f80 fbshipit-source-id: bd10dd2856da6b8fb3bac7a8ec3a7e34eeb58f80 --- Libraries/Experimental/WindowedListView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/Experimental/WindowedListView.js b/Libraries/Experimental/WindowedListView.js index 2549121f9..ba5ef3095 100644 --- a/Libraries/Experimental/WindowedListView.js +++ b/Libraries/Experimental/WindowedListView.js @@ -159,6 +159,11 @@ type Props = { * range of start plus count. */ onMountedRowsWillChange?: (firstIdx: number, count: number) => void; + /** + * Change this when you want to make sure the WindowedListView will re-render, for example when the result of + * `renderScrollComponent` might change. It will be compared in `shouldComponentUpdate`. + */ + shouldUpdateToken?: string; }; type State = {