Skip to content

Commit 87b918e

Browse files
committed
fix: make react components as use client
1 parent 5b814fb commit 87b918e

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/react/src/context.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { createContext } from "react";
24
import type { ReplaneContextValue } from "./types";
35

packages/react/src/hooks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { useCallback, useContext, useEffect, useRef, useSyncExternalStore } from "react";
24
import { ReplaneContext } from "./context";
35
import type { UntypedReplaneConfig } from "./types";

packages/react/src/provider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { useMemo } from "react";
24
import { restoreReplaneClient } from "@replanejs/sdk";
35
import { ReplaneContext } from "./context";

packages/react/src/useReplaneClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { useEffect, useRef, useState } from "react";
24
import { createReplaneClient } from "@replanejs/sdk";
35
import type { ReplaneClient, ReplaneClientOptions } from "@replanejs/sdk";

0 commit comments

Comments
 (0)