victory-chart
Advanced tools
Comparing version 37.0.1 to 37.0.2
# victory-chart | ||
## 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 @@ |
@@ -35,6 +35,3 @@ import _isEmpty from "lodash/isEmpty"; | ||
const VictoryChartImpl = initialProps => { | ||
const propsWithDefaults = React.useMemo(() => ({ | ||
...defaultProps, | ||
...initialProps | ||
}), [initialProps]); | ||
const propsWithDefaults = React.useMemo(() => _defaults({}, initialProps, defaultProps), [initialProps]); | ||
const role = "chart"; | ||
@@ -41,0 +38,0 @@ const { |
@@ -42,6 +42,3 @@ "use strict"; | ||
const VictoryChartImpl = initialProps => { | ||
const propsWithDefaults = _react.default.useMemo(() => ({ | ||
...defaultProps, | ||
...initialProps | ||
}), [initialProps]); | ||
const propsWithDefaults = _react.default.useMemo(() => (0, _defaults2.default)({}, initialProps, defaultProps), [initialProps]); | ||
const role = "chart"; | ||
@@ -48,0 +45,0 @@ const { |
{ | ||
"name": "victory-chart", | ||
"version": "37.0.1", | ||
"version": "37.0.2", | ||
"description": "Chart Component for Victory", | ||
@@ -25,6 +25,6 @@ "keywords": [ | ||
"react-fast-compare": "^3.2.0", | ||
"victory-axis": "^37.0.1", | ||
"victory-core": "^37.0.1", | ||
"victory-polar-axis": "^37.0.1", | ||
"victory-shared-events": "^37.0.1" | ||
"victory-axis": "^37.0.2", | ||
"victory-core": "^37.0.2", | ||
"victory-polar-axis": "^37.0.2", | ||
"victory-shared-events": "^37.0.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "peerDependencies": { |
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
1141057
20300
Updatedvictory-axis@^37.0.2
Updatedvictory-core@^37.0.2
Updatedvictory-polar-axis@^37.0.2