Skip to content

Commit c76242f

Browse files
committed
Add "use client" to entry points to keep Next from erroring
1 parent ff4773c commit c76242f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: src/alternate-renderers.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
// The "alternate renderers" entry point is primarily here to fall back on a no-op
24
// version of `unstable_batchedUpdates`, for use with renderers other than ReactDOM/RN.
35
// Examples include React-Three-Fiber, Ink, etc.

Diff for: src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
// The primary entry point assumes we are working with React 18, and thus have
24
// useSyncExternalStore available. We can import that directly from React itself.
35
// The useSyncExternalStoreWithSelector has to be imported, but we can use the

0 commit comments

Comments
 (0)