File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 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
86import * 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
119import { initializeUseSelector } from './hooks/useSelector'
1210import { initializeConnect } from './components/connect'
Original file line number Diff line number Diff line change 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
86import * 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
119import { unstable_batchedUpdates as batchInternal } from './utils/reactBatchedUpdates'
1210import { setBatch } from './utils/batch'
You can’t perform that action at this time.
0 commit comments