Skip to content

Commit

Permalink
Make Props readonly
Browse files Browse the repository at this point in the history
Reviewed By: samwgoldman

Differential Revision: D45133907

fbshipit-source-id: 02bb905c399e3830d5dc0c344cc9e18b825fda11
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Apr 20, 2023
1 parent 3cce54c commit 037a28f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-relay/ReactRelayQueryRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ const queryRendererContext: ReactRelayQueryRendererContextType = {
rootIsQueryRenderer: true,
};

export type Props = {
export type Props = $ReadOnly<{
cacheConfig?: ?CacheConfig,
fetchPolicy?: 'store-and-network' | 'network-only',
environment: IEnvironment,
query: ?GraphQLTaggedNode,
render: (renderProps: RenderProps<Object>) => React.Node,
variables: Variables,
};
}>;

type State = {
error: Error | null,
Expand Down

0 comments on commit 037a28f

Please sign in to comment.