We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 953bbb1 commit 6c259a1Copy full SHA for 6c259a1
packages/@headlessui-react/src/components/tabs/tabs.tsx
@@ -568,7 +568,14 @@ function PanelFn<TTag extends ElementType = typeof DEFAULT_PANEL_TAG>(
568
569
useIsoMorphicEffect(
570
() => actions.registerPanel(internalPanelRef),
571
- [actions, internalPanelRef, id]
+ [
572
+ actions,
573
+ internalPanelRef,
574
+
575
+ // The `id` prop is here to force a re-render of the
576
+ // corresponding `Tab` whenever the `id` is calculated in React < 18
577
+ id,
578
+ ]
579
)
580
581
let mySSRIndex = useStableCollectionIndex('panels')
0 commit comments