function isShallowOnlyInvalid(invalid, isRootProps) {
      return (
        !shallowOnly ||
        (invalid.pathNodes.length === (isRootProps ? 1 : 0) &&
          ['assignment', 'update'].includes(invalid.kind))
      )
    }
Is shallowOnly false or the prop reassigned
@param {Exclude<ReturnType<typeof utils.findMutating>, null>} invalid
@param {boolean} isRootProps
@return {boolean}