Skip to content

Commit a0c7a4b

Browse files
committed
Fix uSES imports
1 parent 34d1653 commit a0c7a4b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/alternate-renderers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
'use client'
2-
31
// The "alternate renderers" entry point is primarily here to fall back on a no-op
42
// version of `unstable_batchedUpdates`, for use with renderers other than ReactDOM/RN.
53
// Examples include React-Three-Fiber, Ink, etc.
64
// We'll assume they're built with React 18 and thus have `useSyncExternalStore` available.
75

86
import * as React from 'react'
9-
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector'
7+
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector.js'
108

119
import { initializeUseSelector } from './hooks/useSelector'
1210
import { initializeConnect } from './components/connect'

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
'use client'
2-
31
// The primary entry point assumes we are working with React 18, and thus have
42
// useSyncExternalStore available. We can import that directly from React itself.
53
// The useSyncExternalStoreWithSelector has to be imported, but we can use the
64
// non-shim version. This shaves off the byte size of the shim.
75

86
import * as React from 'react'
9-
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector'
7+
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector.js'
108

119
import { unstable_batchedUpdates as batchInternal } from './utils/reactBatchedUpdates'
1210
import { setBatch } from './utils/batch'

0 commit comments

Comments
 (0)