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',
|
virtualListStore.compute('rawVisibleItems',
|
||||||
['items', 'scrollTop', 'itemHeights', 'offsetHeight', 'showHeader', 'headerHeight', 'listOffset'],
|
['items', 'scrollTop', 'itemHeights', 'offsetHeight', 'showHeader', 'headerHeight', 'listOffset'],
|
||||||
(items, scrollTop, itemHeights, offsetHeight, showHeader, headerHeight, listOffset) => {
|
(items, scrollTop, itemHeights, offsetHeight, showHeader, headerHeight, listOffset) => {
|
||||||
window.rawVisibleItemsComputed = (window.rawVisibleItemsComputed || 0) + 1
|
if (process.browser && process.env.NODE_ENV !== 'production') {
|
||||||
|
window.rawVisibleItemsComputed = (window.rawVisibleItemsComputed || 0) + 1
|
||||||
|
}
|
||||||
mark('compute visibleItems')
|
mark('compute visibleItems')
|
||||||
if (!items) {
|
if (!items) {
|
||||||
return null
|
return null
|
||||||
|
|
Loading…
Reference in a new issue