Skip to content

Commit

Permalink
Merge pull request #34 from kudos-ink/fix/labels-hydration-error
Browse files Browse the repository at this point in the history
fix: disable ssr for labels to avoid hydration error
  • Loading branch information
ipapandinas authored Jan 19, 2024
2 parents 5db2e87 + 2ced57c commit 705ab12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ import {
} from "@nextui-org/table";
import { Spinner } from "@nextui-org/spinner";
import { Contribution, PaginatedContributions } from "@/types/contribution";
import { ExternalLink, Content, Labels, Time, Project } from "./row";
import { ExternalLink, Content, Time, Project } from "./row";

import { useContributions } from "@/hooks/useContributions";
import { KudosQueryParameters } from "@/lib/notion/types";
import dynamic from "next/dynamic";
const Labels = dynamic(() => import("./row").then((m) => m.Labels), {
ssr: false,
});

interface IColumn {
name: string;
Expand Down

0 comments on commit 705ab12

Please sign in to comment.