function useResizeObserver(positioner) {
  const forceUpdate = useForceUpdate()
  const resizeObserver = createResizeObserver(positioner, forceUpdate) // Cleans up the resize observers when they change or the
  // component unmounts

  function _ref() {
    return resizeObserver.disconnect()
  }

  React.useEffect(() => _ref, [resizeObserver])
  return resizeObserver
}
/**
 * Creates a resize observer that forces updates to the grid cell positions when mutations are
 * made to cells affecting their height.
 *
 * @param positioner The masonry cell positioner created by the `usePositioner()` hook.
 */
Creates a resize observer that forces updates to the grid cell positions when mutations are
made to cells affecting their height.

@param positioner The masonry cell positioner created by the `usePositioner()` hook.
Creates a resize observer that forces updates to the grid cell positions when mutations are made to cells affecting their height . @param positioner The masonry cell positioner created by the ` usePositioner () ` hook .
function useResizeObserver(positioner) {
  const forceUpdate = useForceUpdate()
  const resizeObserver = createResizeObserver(positioner, forceUpdate) 
  function _ref() {
    return resizeObserver.disconnect()
  }
  React.useEffect(() => _ref, [resizeObserver])
  return resizeObserver
}
function useResizeObserver ( positioner ) { const forceUpdate = useForceUpdate ( ) const resizeObserver = createResizeObserver ( positioner , forceUpdate ) function _ref ( ) { return resizeObserver . disconnect ( ) } React . useEffect ( ( ) => _ref , [ resizeObserver ] ) return resizeObserver }
Creates a resize observer that forces updates to the grid cell positions when mutations are
 made to cells affecting their height.
Creates a resize observer that forces updates to the grid cell positions when mutations are made to cells affecting their height .
// Cleans up the resize observers when they change or the // component unmounts