Skip to content

v0.3.0

Compare
Choose a tag to compare
@ricokahler ricokahler released this 17 Dec 22:04
· 431 commits to main since this release
06f6a60

Includes #10 and better enables the dataHooks static prop pattern.

See the updated README for new documentation.


Updates:

  • getDataHooksProps now de-dupes functions references so the same function reference can be added more than once.

Breaking changes:

  • Trying to access a data hook that has not been added to the getDataHooksProps will result in a throw now. Previously it would return undefined.
  • getDataHooksProps({ hooks: [/* ... */] }) has been renamed to getDataHooksProps({ dataHooks: [/* ... */] })