File tree 2 files changed +7
-2
lines changed
packages/victory-core/src/victory-portal
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " victory-core " : patch
3
+ ---
4
+
5
+ replace useId for backwards compatibility
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
- import { defaults } from "lodash" ;
2
+ import { defaults , uniqueId } from "lodash" ;
3
3
import * as Log from "../victory-util/log" ;
4
4
import * as Helpers from "../victory-util/helpers" ;
5
5
import { usePortalContext } from "./portal-context" ;
@@ -15,7 +15,7 @@ const defaultProps: Partial<VictoryPortalProps> = {
15
15
16
16
export const VictoryPortal = ( initialProps : VictoryPortalProps ) => {
17
17
const props = { ...defaultProps , ...initialProps } ;
18
- const id = React . useId ( ) ;
18
+ const id = uniqueId ( ) ;
19
19
const portalContext = usePortalContext ( ) ;
20
20
21
21
if ( ! portalContext ) {
You can’t perform that action at this time.
0 commit comments