wrap code in dev block (#286)
This commit is contained in:
parent
4e33a34fdb
commit
fa4dd59f01
|
@ -26,7 +26,9 @@ virtualListStore.computeForRealm('itemHeights', {})
|
|||
virtualListStore.compute('rawVisibleItems',
|
||||
['items', 'scrollTop', 'itemHeights', 'offsetHeight', 'showHeader', 'headerHeight', 'listOffset'],
|
||||
(items, scrollTop, itemHeights, offsetHeight, showHeader, headerHeight, listOffset) => {
|
||||
if (process.browser && process.env.NODE_ENV !== 'production') {
|
||||
window.rawVisibleItemsComputed = (window.rawVisibleItemsComputed || 0) + 1
|
||||
}
|
||||
mark('compute visibleItems')
|
||||
if (!items) {
|
||||
return null
|
||||
|
|
Loading…
Reference in New Issue