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

Commit75bb9d8

Browse files
committed
avoid using cache
1 parent4a736d8 commit75bb9d8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

‎web-app/src/containers/New/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ interface TutorialsData {
1717
}
1818

1919
constNewPageContainer=(props:ContainerProps)=>{
20-
const{ data, loading, error}=useQuery<TutorialsData>(queryTutorials)
20+
const{ data, loading, error}=useQuery<TutorialsData>(queryTutorials,{
21+
fetchPolicy:'network-only',
22+
})
2123

2224
if(error){
2325
return<ErrorViewerror={error}/>

‎web-app/src/services/apollo/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
importApolloClient,{InMemoryCache}from'apollo-boost'
1+
importApolloClientfrom'apollo-boost'
22
import{GQL_URI}from'../../environment'
33
import{authorizeHeaders}from'./auth'
44

5-
exportconstcache=newInMemoryCache()
6-
75
constclient=newApolloClient({
86
uri:GQL_URI,
97
request:authorizeHeaders,
10-
cache,
118
})
129

1310
exportdefaultclient

‎web-app/src/services/state/actions/context.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ const contextActions: ActionFunctionMap<T.MachineContext, T.MachineEvent> = {
211211
constposition:T.Position=selectors.defaultPosition()
212212
returnposition
213213
},
214+
processes(){
215+
return[]
216+
},
214217
}),
215218
//@ts-ignore
216219
setError:assign({

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp