v7.0.1
Full Changelog: v7.0.0...v7.0.1
@h5web/lib
- 🐛
useCameraState
Fix regression introduced in v7.0.0 (PR #1361) and affecting cases where thefactory
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 theAnnotation
andDataToHtml
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 thereact-hooks/exhaustive-deps
linting rule in your project. See the documentation foruseCameraState
for more details.
- If you don't use