Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 18 - SuspenseList no longer exported in latest @next version (18.0.0-beta-96ca8d915-20211115) #22771

Closed
ljosberinn opened this issue Nov 15, 2021 · 1 comment
Labels
React 18 Bug reports, questions, and general feedback about React 18 Type: Discussion

Comments

@ljosberinn
Copy link

ljosberinn commented Nov 15, 2021

It appears SuspenseList is missing from the exports, is this intentional? These are the currently exposed Object.keys(React):

[
  'Fragment',
  'StrictMode',
  'Profiler',
  'Suspense',
  'Children',
  'Component',
  'PureComponent',
  '__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED',
  'cloneElement',
  'createContext',
  'createElement',
  'createFactory',
  'createRef',
  'forwardRef',
  'isValidElement',
  'lazy',
  'memo',
  'startTransition',
  'unstable_act',
  'unstable_createMutableSource',
  'useCallback',
  'useContext',
  'useDebugValue',
  'useDeferredValue',
  'useEffect',
  'useId',
  'useImperativeHandle',
  'useInsertionEffect',
  'useLayoutEffect',
  'useMemo',
  'useReducer',
  'useRef',
  'useState',
  'useSyncExternalStore',
  'useTransition',
  'version'
]

while these were the keys in the latest alpha (18.0.0-alpha-200415c91-20211115):

[
  'Fragment',
  'StrictMode',
  'Profiler',
  'Suspense',
  'SuspenseList', <----
  'Children',
  'Component',
  'PureComponent',
  '__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED',
  'cloneElement',
  'createContext',
  'createElement',
  'createFactory',
  'createRef',
  'forwardRef',
  'isValidElement',
  'lazy',
  'memo',
  'startTransition',
  'unstable_act',
  'unstable_createMutableSource',
  'useCallback',
  'useContext',
  'useDebugValue',
  'useDeferredValue',
  'useEffect',
  'useId',
  'useImperativeHandle',
  'useInsertionEffect',
  'useLayoutEffect',
  'useMemo',
  'useReducer',
  'useRef',
  'useState',
  'useSyncExternalStore',
  'useTransition',
  'version'
]

and I saw nothing about SuspenseList being dropped or similar in the Beta Announcement.

Edit: see diff.

Thanks

@ljosberinn ljosberinn added React 18 Bug reports, questions, and general feedback about React 18 Type: Discussion labels Nov 15, 2021
@gaearon
Copy link
Collaborator

gaearon commented Nov 15, 2021

It's moved to @experimental npm tag because it likely won't make it into 18.0.0 and will follow in 18.x after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
React 18 Bug reports, questions, and general feedback about React 18 Type: Discussion
Projects
None yet
Development

No branches or pull requests

2 participants