victory-core 36.5.2 → 36.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-core.js +2 -2
- package/dist/victory-core.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/victory-util/hooks/use-animation-state.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/victory-util/hooks/use-animation-state.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +4 -1
- package/src/victory-util/hooks/use-animation-state.js +2 -2
- package/dist/victory-core.min.js.LICENSE.txt +0 -19
package/dist/victory-core.js
CHANGED
|
@@ -7721,7 +7721,7 @@ var useAnimationState = function () {
|
|
|
7721
7721
|
}, [_setState]); // This is a copy of Wrapper.getAnimationProps
|
|
7722
7722
|
|
|
7723
7723
|
var getAnimationProps = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (props, child, index) {
|
|
7724
|
-
if (!props.animate) {
|
|
7724
|
+
if (!(props !== null && props !== void 0 && props.animate)) {
|
|
7725
7725
|
return child.props.animate;
|
|
7726
7726
|
}
|
|
7727
7727
|
|
|
@@ -7754,7 +7754,7 @@ var useAnimationState = function () {
|
|
|
7754
7754
|
}, [state, setState]); // This is a copy of Wrapper.setAnimationState
|
|
7755
7755
|
|
|
7756
7756
|
var setAnimationState = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (props, nextProps) {
|
|
7757
|
-
if (!props.animate) {
|
|
7757
|
+
if (!props || !props.animate) {
|
|
7758
7758
|
return;
|
|
7759
7759
|
}
|
|
7760
7760
|
|