Skip to content

Performance Upgrade to PropChangeHock

Choose a tag to compare

@allanhortle allanhortle released this 22 May 00:51
· 213 commits to master since this release
  • BREAKING: PropChangeHock now uses a config function
// old
const withPropChange = PropChangeHock(['id'], requestData);

// new
const withPropChange = PropChangeHock(() => {
    paths: ['id'],
    onPropChange: requestData
});
  • NEW: PropChangeHock can pass config.onPropChange function to child by setting config.passOnPropChange to true.