/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v19.0.0
packages/react-dom/src/ReactDOMSharedInternalsFB.js
47 строк
1 KB
Andrew Clark
Scaffolding for requestFormReset API (#28808)
10 апр 2024, 23:55
Не верифицирован
10 апр 2024, 23:55
374b5d2
Код
Авторство
О чём код?
/** * 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 */ import type {EventPriority} from 'react-reconciler/src/ReactEventPriorities'; import type {HostDispatcher} from './shared/ReactDOMTypes'; import {NoEventPriority} from 'react-reconciler/src/ReactEventPriorities'; type ReactDOMInternals = { Events: [any, any, any, any, any, any], d /* ReactDOMCurrentDispatcher */: HostDispatcher, p /* currentUpdatePriority */: EventPriority, findDOMNode: | null | (( componentOrElement: React$Component<any, any>, ) => null | Element | Text), }; function noop() {} const DefaultDispatcher: HostDispatcher = { f /* flushSyncWork */: noop, r /* requestFormReset */: noop, D /* prefetchDNS */: noop, C /* preconnect */: noop, L /* preload */: noop, m /* preloadModule */: noop, X /* preinitScript */: noop, S /* preinitStyle */: noop, M /* preinitModuleScript */: noop, }; const Internals: ReactDOMInternals = { Events: (null: any), d /* ReactDOMCurrentDispatcher */: DefaultDispatcher, p /* currentUpdatePriority */: NoEventPriority, findDOMNode: null, }; export default Internals;