tonyhb / redux-ui

Easy UI state management for react redux
636 stars 58 forks source link

Beware, ReduxUI force update child / Inner component, bad for performance ! #65

Closed zamrq closed 7 years ago

zamrq commented 7 years ago

` @ui({ key: 'Container', state: { any: 111} }) export class Container extends React.Component { return ( {this.props.children} ) }

export class Inner extends React.PureComponent { shouldComponentUpdate(nextProps) { return nextProps.some !== this.props.some; } } `

Inner Force RErendered