How to use the @tarojs/utils.shallowEqual function in @tarojs/utils

To help you get started, we’ve selected a few @tarojs/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NervJS / taro / packages / taro-weapp / src / pure-component.js View on Github external
shouldComponentUpdate (nextProps, nextState) {
    return !shallowEqual(this.props, nextProps) || !shallowEqual(this.state, nextState)
  }
}

@tarojs/utils

Utils for Taro

MIT
Latest version published 4 years ago

Package Health Score

70 / 100
Full package analysis