UNPKG

702 BJavaScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @emails oncall+relay
8 *
9 * @format
10 */
11// flowlint ambiguous-object-type:error
12// This contextual profiler can be used to wrap a react sub-tree. It will bind
13// the RelayProfiler during the render phase of these components. Allows
14// collecting metrics for a specific part of your application.
15'use strict';
16
17var React = require('react');
18
19var ProfilerContext = React.createContext({
20 wrapPrepareQueryResource: function wrapPrepareQueryResource(cb) {
21 return cb();
22 }
23});
24module.exports = ProfilerContext;
\No newline at end of file