Skip to content

Commit

Permalink
SSR support fixes [prerelease]
Browse files Browse the repository at this point in the history
  • Loading branch information
MosheZemah committed Oct 6, 2024
1 parent 2f902e6 commit 737c66e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { VibeComponentProps } from "../../types";
import * as PopperJS from "@popperjs/core";
import styles from "./Dialog.module.scss";
import { ComponentDefaultTestId, getTestId } from "../../tests/test-ids-utils";
import { isClient } from "src/utils/ssr-utils";
import { isClient } from "../../utils/ssr-utils";

export interface DialogProps extends VibeComponentProps {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/hooks/ssr/useIsomorphicLayoutEffect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useLayoutEffect } from "react";
import { isClient } from "src/utils/ssr-utils";
import { isClient } from "../../utils/ssr-utils";

// In server side rendering, useEffect is used instead of useLayoutEffect to avoid the console warnings
const useIsomorphicLayoutEffect = isClient() ? useLayoutEffect : useEffect;
Expand Down

0 comments on commit 737c66e

Please sign in to comment.