Please sign in to comment.
Make sure VirtualizedList's windowSize is greater than 0
Summary: Setting `windowSize = 0` doesn't make sense. Let's make sure we catch this problem in the constructor so that it doesn't cause inexplicable list behavior. Also fixed an invariant in `VirtualizeUtils` that is meant to prohibit non-monotonically-increasing offset arrays. As written, the invariant condition can never actually be violated. Reviewed By: sahrens Differential Revision: D6625302 fbshipit-source-id: b2a983cbe7bb5fbe0aed7c5d59e69a8a00672993
- Loading branch information...
Showing with 24 additions and 3 deletions.
|@@ -0,0 +1,3 @@|
|// Jest Snapshot v1, https://goo.gl/fbAQLP|
|exports[`elementsThatOverlapOffsets errors on non-increasing offsets 1`] = `"bad offsets input, should be in increasing order: [150,50]"`;|