UNPKG

@kabbi/react-redux-form

Version:
8 lines (6 loc) 323 B
import { Children } from 'react'; import shallowEqual from './shallow-equal'; export default function shallowCompareWithoutChildren(instance, nextProps) { return !shallowEqual(instance.props, nextProps, { omitKeys: ['children'] }) || Children.count(instance.props.children) !== Children.count(nextProps.children); }