@kabbi/react-redux-form
Version:
Create Forms Easily with React and Redux
8 lines (6 loc) • 323 B
JavaScript
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);
}