Skip to content

Commit

Permalink
Update fetch-query.md (#4296)
Browse files Browse the repository at this point in the history
Summary:
Fix a bug where a variable had the wrong name

Pull Request resolved: #4296

Reviewed By: tyao1

Differential Revision: D45660859

Pulled By: captbaritone

fbshipit-source-id: bd09d5ab8130d18ab419bd3fbc5706dfb576606b
  • Loading branch information
christiansany authored and facebook-github-bot committed May 10, 2023
1 parent dc659df commit 37ad7f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you want to fetch a query outside of React, you can use the `fetchQuery` func

```js
// You should prefer passing an environment that was returned from useRelayEnvironment()
const MyEnvironment = require('MyEnvironment');
const environment = require('MyEnvironment');
const {fetchQuery} = require('react-relay');

fetchQuery(
Expand Down

0 comments on commit 37ad7f2

Please sign in to comment.