Skip to content

v7.0.1

Compare
Choose a tag to compare
@axelboc axelboc released this 22 Feb 08:05
· 703 commits to main since this release
214727a

Full Changelog: v7.0.0...v7.0.1

@h5web/lib

  • 🐛 useCameraState Fix regression introduced in v7.0.0 (PR #1361) and affecting cases where the factory function references external dependencies (i.e. props, state and other local variables) — useCameraState would ignore changes to those dependencies and return a stale state. This bug was also affecting the Annotation and DataToHtml components (but not @h5web/app). #1368
    • If you don't use useCameraState directly, upgrading should suffice.
    • If you use useCameraState directly, you'll need to revert some of the changes you made when upgrading to 7.0.0. More specifically, you'll need to pass once again a dependency array as second argument to the hook and reconfigure the react-hooks/exhaustive-deps linting rule in your project. See the documentation for useCameraState for more details.