Comparing version 3.0.3 to 3.0.4
@@ -506,12 +506,14 @@ 'use strict' | ||
;(0, _passiveLayoutEffect.default)(() => { | ||
const cacheSize = positioner.size() | ||
const nextPositioner = initPositioner() | ||
let index = 0 | ||
if (didMount.current) { | ||
const cacheSize = positioner.size() | ||
const nextPositioner = initPositioner() | ||
let index = 0 | ||
for (; index < cacheSize; index++) { | ||
const pos = positioner.get(index) | ||
nextPositioner.set(index, pos !== void 0 ? pos.height : 0) | ||
} | ||
for (; index < cacheSize; index++) { | ||
const pos = positioner.get(index) | ||
nextPositioner.set(index, pos !== void 0 ? pos.height : 0) | ||
} | ||
setPositioner(nextPositioner) // eslint-disable-next-line | ||
setPositioner(nextPositioner) | ||
} // eslint-disable-next-line | ||
}, [width, columnWidth, columnGutter, columnCount]) | ||
@@ -518,0 +520,0 @@ return positioner |
@@ -459,12 +459,14 @@ import React from 'react' | ||
useLayoutEffect(() => { | ||
const cacheSize = positioner.size() | ||
const nextPositioner = initPositioner() | ||
let index = 0 | ||
if (didMount.current) { | ||
const cacheSize = positioner.size() | ||
const nextPositioner = initPositioner() | ||
let index = 0 | ||
for (; index < cacheSize; index++) { | ||
const pos = positioner.get(index) | ||
nextPositioner.set(index, pos !== void 0 ? pos.height : 0) | ||
} | ||
for (; index < cacheSize; index++) { | ||
const pos = positioner.get(index) | ||
nextPositioner.set(index, pos !== void 0 ? pos.height : 0) | ||
} | ||
setPositioner(nextPositioner) // eslint-disable-next-line | ||
setPositioner(nextPositioner) | ||
} // eslint-disable-next-line | ||
}, [width, columnWidth, columnGutter, columnCount]) | ||
@@ -471,0 +473,0 @@ return positioner |
{ | ||
"name": "masonic", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"homepage": "https://github.com/jaredLunde/masonic#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/masonic", |
Sorry, the diff of this file is not supported yet
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
230673
4952