Skip to content

Commit

Permalink
Fix typo in load-query.md documentation (#4106)
Browse files Browse the repository at this point in the history
Summary:
I believe this line should read:

"... will be retained by the relay store, preventing the data from being garbage collected" instead of "... will be retained by the relay store, preventing ~~**it**~~ the data from being garbage collected".

Pull Request resolved: #4106

Reviewed By: voideanvalue

Differential Revision:
D46112123

Privacy Context Container: L1125407

Pulled By: captbaritone

fbshipit-source-id: d03a82ce719f8ea7e4235c5796f5155cdd1b4f69
  • Loading branch information
jmancherje authored and facebook-github-bot committed May 24, 2023
1 parent 1f4d4f1 commit 9942761
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The exact format of the return value is *unstable and highly likely to change*.
### Behavior

* `loadQuery()` will fetch data if passed a query, or data and the query if passed a preloadable concrete request. Once both the query and data are available, the data from the query will be written to the store. This differs from the behavior of `preloadQuery_DEPRECATED`, which would only write data to the store if the query was passed to `usePreloadedQuery`.
* the query reference returned from `loadQuery` will be retained by the relay store, preventing it the data from being garbage collected. Once you call `.dispose()` on the query reference, it can be garbage collected.
* the query reference returned from `loadQuery` will be retained by the relay store, preventing the data from being garbage collected. Once you call `.dispose()` on the query reference, it can be garbage collected.
* `loadQuery()` will throw an error if it is called during React's render phase.


Expand Down

0 comments on commit 9942761

Please sign in to comment.