/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v19.1.0
packages/react/src/ReactServer.experimental.js
83 строки
2 KB
Sebastian Markbåge
Remove useActionState Hook export from experimental react-server condition (#32342)
09 фев 2025, 23:01
Не верифицирован
09 фев 2025, 23:01
594ea53
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export {default as __SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE} from './ReactSharedInternalsServer'; import {forEach, map, count, toArray, only} from './ReactChildren'; import { REACT_FRAGMENT_TYPE, REACT_PROFILER_TYPE, REACT_STRICT_MODE_TYPE, REACT_SUSPENSE_TYPE, REACT_SUSPENSE_LIST_TYPE, REACT_VIEW_TRANSITION_TYPE, } from 'shared/ReactSymbols'; import { cloneElement, createElement, isValidElement, } from './jsx/ReactJSXElement'; import {createRef} from './ReactCreateRef'; import { use, useId, useCallback, useDebugValue, useMemo, getCacheForType, } from './ReactHooks'; import {forwardRef} from './ReactForwardRef'; import {lazy} from './ReactLazy'; import {memo} from './ReactMemo'; import {cache} from './ReactCacheServer'; import {startTransition} from './ReactStartTransition'; import {postpone} from './ReactPostpone'; import version from 'shared/ReactVersion'; const Children = { map, forEach, count, toArray, only, }; // These are server-only export { taintUniqueValue as experimental_taintUniqueValue, taintObjectReference as experimental_taintObjectReference, } from './ReactTaint'; export { Children, REACT_FRAGMENT_TYPE as Fragment, REACT_PROFILER_TYPE as Profiler, REACT_STRICT_MODE_TYPE as StrictMode, REACT_SUSPENSE_TYPE as Suspense, cloneElement, createElement, createRef, use, forwardRef, isValidElement, lazy, memo, cache, startTransition, getCacheForType as unstable_getCacheForType, postpone as unstable_postpone, useId, useCallback, useDebugValue, useMemo, version, // Experimental REACT_SUSPENSE_LIST_TYPE as unstable_SuspenseList, REACT_VIEW_TRANSITION_TYPE as unstable_ViewTransition, };