File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
- 'use client'
2
-
3
1
// The "alternate renderers" entry point is primarily here to fall back on a no-op
4
2
// version of `unstable_batchedUpdates`, for use with renderers other than ReactDOM/RN.
5
3
// Examples include React-Three-Fiber, Ink, etc.
6
4
// We'll assume they're built with React 18 and thus have `useSyncExternalStore` available.
7
5
8
6
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 '
10
8
11
9
import { initializeUseSelector } from './hooks/useSelector'
12
10
import { initializeConnect } from './components/connect'
Original file line number Diff line number Diff line change 1
- 'use client'
2
-
3
1
// The primary entry point assumes we are working with React 18, and thus have
4
2
// useSyncExternalStore available. We can import that directly from React itself.
5
3
// The useSyncExternalStoreWithSelector has to be imported, but we can use the
6
4
// non-shim version. This shaves off the byte size of the shim.
7
5
8
6
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 '
10
8
11
9
import { unstable_batchedUpdates as batchInternal } from './utils/reactBatchedUpdates'
12
10
import { setBatch } from './utils/batch'
You can’t perform that action at this time.
0 commit comments