Added Flow annotations to memoized methods to avoid a Flow warning for newer versions of Flow
This commit is contained in:
@@ -500,7 +500,7 @@ export default function createGridComponent({
|
||||
};
|
||||
|
||||
_getItemStyleCache: (_: any, __: any) => ItemStyleCache;
|
||||
_getItemStyleCache = memoizeOne((_, __) => ({}));
|
||||
_getItemStyleCache = memoizeOne((_: any, __: any) => ({}));
|
||||
|
||||
_getHorizontalRangeToRender(): [number, number, number, number] {
|
||||
const { columnCount, overscanCount, rowCount } = this.props;
|
||||
|
||||
@@ -410,7 +410,7 @@ export default function createListComponent({
|
||||
};
|
||||
|
||||
_getItemStyleCache: (_: any) => ItemStyleCache;
|
||||
_getItemStyleCache = memoizeOne(_ => ({}));
|
||||
_getItemStyleCache = memoizeOne((_: any) => ({}));
|
||||
|
||||
_getRangeToRender(): [number, number, number, number] {
|
||||
const { itemCount, overscanCount } = this.props;
|
||||
|
||||
Reference in New Issue
Block a user