Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce0b8c3

Browse files
monicatangfacebook-github-bot
authored andcommitted
delete some pages
Reviewed By: captbaritoneDifferential Revision: D72816972fbshipit-source-id: 7ef33c4ae18444df2a7de6b009f502e1798da8f1
1 parentbe57753 commitce0b8c3

File tree

7 files changed

+3
-38
lines changed

7 files changed

+3
-38
lines changed

‎website/docs/api-reference/hooks/load-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const queryReference = loadQuery(
5656
*`query`: GraphQL query to fetch, specified using a`graphql` template literal, or a preloadable concrete request, which can be acquired by requiring the file`<name-of-query>$Parameters.graphql`. Relay will only generate the`$Parameters` file if the query is annotated with`@preloadable`.
5757
*`variables`: Object containing the variable values to fetch the query. These variables need to match GraphQL variables declared inside the query.
5858
*`options`:*_[Optional]_* options object
59-
*`fetchPolicy`: Determines if cached data should be used, and whether to send a network request based on the cached data that is currently available in the Relay store (for more details, see our[Fetch Policies](../../guided-tour/reusing-cached-data/fetch-policies) and[Garbage Collection](../../guided-tour/reusing-cached-data/availability-of-data) guides):
59+
*`fetchPolicy`: Determines if cached data should be used, and whether to send a network request based on the cached data that is currently available in the Relay store (for more details, see our[Fetch Policies](../../guided-tour/reusing-cached-data/fetch-policies) and[Garbage Collection](../../guided-tour/reusing-cached-data/presence-of-data) guides):
6060
* "store-or-network":**(default)***will* reuse locally cached data and will*only* send a network request if any data for the query is missing. If the query is fully cached, a network request will*not* be made.
6161
* "store-and-network":*will* reuse locally cached data and will*always* send a network request, regardless of whether any data was missing from the local cache or not.
6262
* "network-only":*will not* reuse locally cached data, and will*always* send a network request to fetch the query, ignoring any data that might be locally cached in Relay.

‎website/docs/api-reference/relay-runtime/fetch-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fetchQuery(
7979
###Behavior
8080

8181
*`fetchQuery` will automatically save the fetched data to the in-memory Relay store, and notify any components subscribed to the relevant data.
82-
*`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](../../guided-tour/reusing-cached-data/availability-of-data) for more details.
82+
*`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](../../guided-tour/reusing-cached-data/presence-of-data) for more details.
8383
*`fetchQuery` will automatically de-dupe identical network requests (same query and variables) that are in flight at the same time, and that were initiated with`fetchQuery`.
8484

8585

‎website/docs/guided-tour/refetching/OssAvoidSuspenseNote.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎website/docs/guided-tour/refetching/refetching-queries-with-different-data.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {OssOnly, FbInternalOnly} from 'docusaurus-plugin-internaldocs-fb/interna
1313
import FbRefetchingQueriesUsingUseQueryLoader from './fb/FbRefetchingQueriesUsingUseQueryLoader.md';
1414
import FbRefetchingQueriesUsingUseLazyLoadQuery from './fb/FbRefetchingQueriesUsingUseLazyLoadQuery.md';
1515
import FbAvoidSuspenseCaution from './fb/FbAvoidSuspenseCaution.md';
16-
import OssAvoidSuspenseNote from './OssAvoidSuspenseNote.md';
1716

1817
When referring to**"refetching a query"**, we mean fetching the query again for*different* data than was originally rendered by the query. For example, this might be to change a currently selected item, to render a different list of items than the one being shown, or more generally to transition the currently rendered content to show new or different content.
1918

@@ -109,10 +108,6 @@ In some cases, you might want to avoid showing a Suspense fallback, which would
109108
<FbAvoidSuspenseCaution />
110109
</FbInternalOnly>
111110
112-
<OssOnly>
113-
<OssAvoidSuspenseNote />
114-
</OssOnly>
115-
116111
```js
117112
/**
118113
* App.react.js
@@ -272,10 +267,6 @@ In some cases, you might want to avoid showing a Suspense fallback, which would
272267
<FbAvoidSuspenseCaution />
273268
</FbInternalOnly>
274269
275-
<OssOnly>
276-
<OssAvoidSuspenseNote />
277-
</OssOnly>
278-
279270
```js
280271
/**
281272
* App.react.js

‎website/docs/guided-tour/refetching/refreshing-queries.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import FbRefreshingUsingRealTimeFeatures from './fb/FbRefreshingUsingRealTimeFea
1414
import FbRefreshingQueriesUsingUseQueryLoader from './fb/FbRefreshingQueriesUsingUseQueryLoader.md';
1515
import FbAvoidSuspenseCaution from './fb/FbAvoidSuspenseCaution.md';
1616
import FbRefreshingQueriesUsingUseLazyLoadQuery from './fb/FbRefreshingQueriesUsingUseLazyLoadQuery.md';
17-
import OssAvoidSuspenseNote from './OssAvoidSuspenseNote.md';
1817

1918
When referring to**"refreshing a query"**, we mean fetching the*exact* same data that was originally rendered by the query, in order to get the most up-to-date version of that data from the server.
2019

@@ -126,10 +125,6 @@ In some cases, you might want to avoid showing a Suspense fallback, which would
126125
<FbAvoidSuspenseCaution />
127126
</FbInternalOnly>
128127
129-
<OssOnly>
130-
<OssAvoidSuspenseNote />
131-
</OssOnly>
132-
133128
```js
134129
/**
135130
* App.react.js

‎website/docs/guided-tour/reusing-cached-data/availability-of-data.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎website/docs/guided-tour/reusing-cached-data/fetch-policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function AppTabs() {
3737
The provided`fetchPolicy` will determine:
3838

3939
**whether* the query should be fulfilled from the local cache, and
40-
**whether* a network request should be made to fetch the query from the server, depending on the[availability of the data for that query in the store](../availability-of-data/).
40+
**whether* a network request should be made to fetch the query from the server, depending on the availability of the data for that query in the store.
4141

4242

4343
By default, Relay will try to read the query from the local cache; if any piece of data for that query is[missing](../presence-of-data/) or[stale](../staleness-of-data/), it will fetch the entire query from the network. This default`fetchPolicy` is called "*store-or-network".*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp