/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v18.1.0
packages/react-server-native-relay/src/ReactFlightNativeRelayServer.js
32 строки
698 B
Sebastian Markbåge
[Fizz/Flight] Pass in Destination lazily to startFlowing instead of in createRequest (#22449)
29 сен 2021, 01:32
Не верифицирован
29 сен 2021, 01:32
7843b14
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its 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 {ReactModel} from 'react-server/src/ReactFlightServer'; import type { BundlerConfig, Destination, } from './ReactFlightNativeRelayServerHostConfig'; import { createRequest, startWork, startFlowing, } from 'react-server/src/ReactFlightServer'; function render( model: ReactModel, destination: Destination, config: BundlerConfig, ): void { const request = createRequest(model, config); startWork(request); startFlowing(request, destination); } export {render};