Hydration error due to overlapping triggers #4278
dHarshMakwana
started this conversation in
General
Replies: 1 comment
-
One of reason of hydration errors with shadcn (radix-ui) in Interactive Content cannot be nested ( Example:
where SheetTrigger, TooltipTrigger and Button renders as HTML button, and you can try fix it by using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using tablist and inside those I have a tooltip and due to overlapping triggers its causing hydration triggers
`import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "
/components/ui/tooltip";/constants";import { sizeChart } from "
import { type FC } from "react";
import { Tabs, TabsList, TabsTrigger } from "../ui/tabs";
interface SizeTabsProps {
selectedSize: string;
handleSizeChange: (value: string) => void;
}
const SizeTabs: FC = ({ selectedSize, handleSizeChange }) => (
<Tabs
onValueChange={handleSizeChange}
defaultValue={selectedSize}
className=""
export default SizeTabs;
`
Beta Was this translation helpful? Give feedback.
All reactions