Comparing version 2.1.7 to 2.1.8
@@ -256,3 +256,3 @@ 'use strict' | ||
const to = window.setTimeout(_ref, 1000 / 6) | ||
return () => window.clearTimeout(to) | ||
return () => window.clearTimeout(to) // eslint-disable-next-line | ||
}, [scrollY]) | ||
@@ -379,9 +379,6 @@ return { | ||
function _ref3(current) { | ||
return ++current | ||
} | ||
const useForceUpdate = () => { | ||
const setState = useState({})[1] // eslint-disable-next-line | ||
const useForceUpdate = () => { | ||
const setState = useState(0)[1] | ||
return useCallback(() => setState(_ref3), emptyArr) | ||
return useCallback(() => setState({}), emptyArr) | ||
} | ||
@@ -464,3 +461,3 @@ | ||
function _ref4(entries) { | ||
function _ref3(entries) { | ||
const updates = [] | ||
@@ -508,3 +505,3 @@ | ||
const resizeObserver = useMemo( | ||
() => new _resizeObserverPolyfill.default(_ref4), | ||
() => new _resizeObserverPolyfill.default(_ref3), // eslint-disable-next-line | ||
[itemPositioner, positionCache] | ||
@@ -521,6 +518,6 @@ ) // cleans up the resize observers when they change or the | ||
onRender(startIndex.current, stopIndex.current, items) | ||
} | ||
}, [items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively | ||
} // eslint-disable-next-line | ||
}, [onRender, items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively | ||
function _ref5() { | ||
function _ref4() { | ||
setPositionCache(createPositionCache()) | ||
@@ -532,4 +529,4 @@ } | ||
() => ({ | ||
clearPositions: _ref5, | ||
}), | ||
clearPositions: _ref4, | ||
}), // eslint-disable-next-line | ||
emptyArr | ||
@@ -563,3 +560,3 @@ ) // Updates the item positions any time a prop potentially affecting their | ||
} | ||
} | ||
} // eslint-disable-next-line | ||
}, [width, columnWidth, columnGutter, columnCount]) | ||
@@ -951,3 +948,3 @@ const setItemRef = getRefSetter( | ||
}, | ||
[totalItems, minimumBatchSize, threshold, isItemLoaded] | ||
[loadMoreItems, totalItems, minimumBatchSize, threshold, isItemLoaded] | ||
) | ||
@@ -954,0 +951,0 @@ } |
@@ -230,3 +230,3 @@ import _pt from 'prop-types' | ||
const to = window.setTimeout(_ref, 1000 / 6) | ||
return () => window.clearTimeout(to) | ||
return () => window.clearTimeout(to) // eslint-disable-next-line | ||
}, [scrollY]) | ||
@@ -346,9 +346,6 @@ return { | ||
function _ref3(current) { | ||
return ++current | ||
} | ||
const useForceUpdate = () => { | ||
const setState = useState({})[1] // eslint-disable-next-line | ||
const useForceUpdate = () => { | ||
const setState = useState(0)[1] | ||
return useCallback(() => setState(_ref3), emptyArr) | ||
return useCallback(() => setState({}), emptyArr) | ||
} | ||
@@ -430,3 +427,3 @@ | ||
function _ref4(entries) { | ||
function _ref3(entries) { | ||
const updates = [] | ||
@@ -473,6 +470,6 @@ | ||
const resizeObserver = useMemo(() => new ResizeObserver(_ref4), [ | ||
itemPositioner, | ||
positionCache, | ||
]) // cleans up the resize observers when they change or the | ||
const resizeObserver = useMemo( | ||
() => new ResizeObserver(_ref3), // eslint-disable-next-line | ||
[itemPositioner, positionCache] | ||
) // cleans up the resize observers when they change or the | ||
// component unmounts | ||
@@ -487,6 +484,6 @@ | ||
onRender(startIndex.current, stopIndex.current, items) | ||
} | ||
}, [items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively | ||
} // eslint-disable-next-line | ||
}, [onRender, items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively | ||
function _ref5() { | ||
function _ref4() { | ||
setPositionCache(createPositionCache()) | ||
@@ -498,4 +495,4 @@ } | ||
() => ({ | ||
clearPositions: _ref5, | ||
}), | ||
clearPositions: _ref4, | ||
}), // eslint-disable-next-line | ||
emptyArr | ||
@@ -529,3 +526,3 @@ ) // Updates the item positions any time a prop potentially affecting their | ||
} | ||
} | ||
} // eslint-disable-next-line | ||
}, [width, columnWidth, columnGutter, columnCount]) | ||
@@ -898,3 +895,3 @@ const setItemRef = getRefSetter( | ||
}, | ||
[totalItems, minimumBatchSize, threshold, isItemLoaded] | ||
[loadMoreItems, totalItems, minimumBatchSize, threshold, isItemLoaded] | ||
) | ||
@@ -901,0 +898,0 @@ } |
{ | ||
"name": "masonic", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"homepage": "https://github.com/jaredLunde/masonic#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/masonic", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113804
2516