Skip to content

Commit

Permalink
Add "use client" to entry points to keep Next from erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Aug 23, 2023
1 parent ff4773c commit c76242f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/alternate-renderers.ts
@@ -1,3 +1,5 @@
'use client'

// The "alternate renderers" entry point is primarily here to fall back on a no-op
// version of `unstable_batchedUpdates`, for use with renderers other than ReactDOM/RN.
// Examples include React-Three-Fiber, Ink, etc.
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
@@ -1,3 +1,5 @@
'use client'

// The primary entry point assumes we are working with React 18, and thus have
// useSyncExternalStore available. We can import that directly from React itself.
// The useSyncExternalStoreWithSelector has to be imported, but we can use the
Expand Down

0 comments on commit c76242f

Please sign in to comment.