UNPKG

662 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// This contextual profiler can be used to wrap a react sub-tree. It will bind
12// the RelayProfiler during the render phase of these components. Allows
13// collecting metrics for a specific part of your application.
14'use strict';
15
16var React = require('react');
17
18var ProfilerContext = React.createContext({
19 wrapPrepareQueryResource: function wrapPrepareQueryResource(cb) {
20 return cb();
21 }
22});
23module.exports = ProfilerContext;
\No newline at end of file