UNPKG

react-relay

Version:

A framework for building GraphQL-driven React applications.

20 lines (16 loc) 499 B
/** * 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 strict-local * @format * @oncall relay */ 'use strict'; const React = require('react'); export type ReactRelayQueryRendererContext = {rootIsQueryRenderer: boolean}; module.exports = (React.createContext({ rootIsQueryRenderer: false, }): React.Context<ReactRelayQueryRendererContext | null>);