Comparing version 9.5.4 to 9.5.5
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import type { MenuDividerType } from './interface'; | ||
export declare type DividerProps = Omit<MenuDividerType, 'type'>; | ||
export default function Divider({ className, style }: DividerProps): JSX.Element; |
@@ -100,3 +100,5 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
var childList = parseItems(children, items, EMPTY_LIST); | ||
var childList = React.useMemo(function () { | ||
return parseItems(children, items, EMPTY_LIST); | ||
}, [children, items]); | ||
@@ -103,0 +105,0 @@ var _React$useState = React.useState(false), |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import type { MenuDividerType } from './interface'; | ||
export declare type DividerProps = Omit<MenuDividerType, 'type'>; | ||
export default function Divider({ className, style }: DividerProps): JSX.Element; |
@@ -133,3 +133,5 @@ "use strict"; | ||
restProps = (0, _objectWithoutProperties2.default)(props, _excluded); | ||
var childList = (0, _nodeUtil.parseItems)(children, items, EMPTY_LIST); | ||
var childList = React.useMemo(function () { | ||
return (0, _nodeUtil.parseItems)(children, items, EMPTY_LIST); | ||
}, [children, items]); | ||
@@ -136,0 +138,0 @@ var _React$useState = React.useState(false), |
{ | ||
"name": "rc-menu", | ||
"version": "9.5.4", | ||
"version": "9.5.5", | ||
"description": "menu ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
226159
111
4774