@drippr/embed-react 0.2.2 → 0.2.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/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -511,7 +511,11 @@ function DripprFlow({
|
|
|
511
511
|
baseUrl = DEFAULT_BASE_URL,
|
|
512
512
|
prefetch = true
|
|
513
513
|
}) {
|
|
514
|
-
const
|
|
514
|
+
const reactId = React3.useId();
|
|
515
|
+
const [instanceId, setInstanceId] = React3.useState(reactId);
|
|
516
|
+
React3.useEffect(() => {
|
|
517
|
+
setInstanceId(generateInstanceId());
|
|
518
|
+
}, []);
|
|
515
519
|
const [height, setHeight] = React3.useState(fallbackHeight);
|
|
516
520
|
const [internalOpen, setInternalOpen] = React3.useState(false);
|
|
517
521
|
const iframeRef = React3.useRef(null);
|
package/dist/index.mjs
CHANGED
|
@@ -475,7 +475,11 @@ function DripprFlow({
|
|
|
475
475
|
baseUrl = DEFAULT_BASE_URL,
|
|
476
476
|
prefetch = true
|
|
477
477
|
}) {
|
|
478
|
-
const
|
|
478
|
+
const reactId = React3.useId();
|
|
479
|
+
const [instanceId, setInstanceId] = React3.useState(reactId);
|
|
480
|
+
React3.useEffect(() => {
|
|
481
|
+
setInstanceId(generateInstanceId());
|
|
482
|
+
}, []);
|
|
479
483
|
const [height, setHeight] = React3.useState(fallbackHeight);
|
|
480
484
|
const [internalOpen, setInternalOpen] = React3.useState(false);
|
|
481
485
|
const iframeRef = React3.useRef(null);
|