Files
react/packages/react-server-native-relay/src/__mocks__/ReactFlightNativeRelayServerIntegration.js
T
Sebastian Markbåge 5fd9db732d [Flight] Rename react-transport-... packages to react-server-... (#20403)
* Move files

* Update paths

* Rename import variables

* Rename /server to /writer

This is mainly because "React Server Server" is weird so we need another
dimension.

* Use "react-server" convention to enforce that writer is only loaded in a server
2020-12-08 08:08:57 -05:00

21 lines
486 B
JavaScript

/**
* 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.
*/
'use strict';
const ReactFlightNativeRelayServerIntegration = {
emitRow(destination, json) {
destination.push(json);
},
close(destination) {},
resolveModuleMetaData(config, resource) {
return resource._moduleId;
},
};
module.exports = ReactFlightNativeRelayServerIntegration;