Skip to content

Commit

Permalink
Fix typo in RelayHooks-ApiReference.md (#2931)
Browse files Browse the repository at this point in the history
Summary:
see also: https://github.com/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Pull Request resolved: #2931

Differential Revision: D18354350

Pulled By: kassens

fbshipit-source-id: ba0c6fb0da9a7c90e29cf930294ec5bcae35a065
  • Loading branch information
leonardodino authored and facebook-github-bot committed Nov 6, 2019
1 parent a8e0547 commit bb33efe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -626,5 +626,5 @@ fetchQuery<AppQuery>(
#### Behavior
* `fetchQuery` will automatically save th fetched data to the in-memory Relay store, and notify any components subscribed to the relevant data.
* `fetchQuery` will automatically save the fetched data to the in-memory Relay store, and notify any components subscribed to the relevant data.
* `fetchQuery` will ***NOT*** retain the data for the query, meaning that it is not guaranteed that the data will remain saved in the Relay store at any point after the request completes. If you wish to make sure that the data is retained outside of the scope of the request, you need to call `environment.retain()` directly on the query to ensure it doesn't get deleted. See our section on [Controlling Relay's GC Policy](a-guided-tour-of-relay/#controlling-relays-garbage-collection-policy) for more details.

0 comments on commit bb33efe

Please sign in to comment.