victory-group
Advanced tools
Comparing version 37.0.1 to 37.0.2
# victory-group | ||
## 37.0.2 | ||
### Patch Changes | ||
- Ensure undefined props do not overwrite defaults ([#2852](https://github.com/FormidableLabs/victory/pull/2852)) | ||
## 37.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -29,6 +29,3 @@ import _isEmpty from "lodash/isEmpty"; | ||
} = Hooks.useAnimationState(); | ||
const propsWithDefaults = React.useMemo(() => ({ | ||
...defaultProps, | ||
...initialProps | ||
}), [initialProps]); | ||
const propsWithDefaults = React.useMemo(() => _defaults({}, initialProps, defaultProps), [initialProps]); | ||
const props = getProps(propsWithDefaults); | ||
@@ -35,0 +32,0 @@ const modifiedProps = Helpers.modifyProps(props, fallbackProps, role); |
@@ -36,6 +36,3 @@ "use strict"; | ||
} = _victoryCore.Hooks.useAnimationState(); | ||
const propsWithDefaults = _react.default.useMemo(() => ({ | ||
...defaultProps, | ||
...initialProps | ||
}), [initialProps]); | ||
const propsWithDefaults = _react.default.useMemo(() => (0, _defaults2.default)({}, initialProps, defaultProps), [initialProps]); | ||
const props = getProps(propsWithDefaults); | ||
@@ -42,0 +39,0 @@ const modifiedProps = _victoryCore.Helpers.modifyProps(props, fallbackProps, role); |
{ | ||
"name": "victory-group", | ||
"version": "37.0.1", | ||
"version": "37.0.2", | ||
"description": "Group Layout Component for Victory", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"react-fast-compare": "^3.2.0", | ||
"victory-core": "^37.0.1", | ||
"victory-shared-events": "^37.0.1" | ||
"victory-core": "^37.0.2", | ||
"victory-shared-events": "^37.0.2" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
794263
14938
Updatedvictory-core@^37.0.2