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

Commit543a51c

Browse files
committed
turn off cache on tutorials due to cache error
1 parent75bb9d8 commit543a51c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface TutorialsData {
1818

1919
constNewPageContainer=(props:ContainerProps)=>{
2020
const{ data, loading, error}=useQuery<TutorialsData>(queryTutorials,{
21-
fetchPolicy:'network-only',
21+
fetchPolicy:'no-cache',
2222
})
2323

2424
if(error){

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Overview = (props: PageProps) => {
2828
thrownewError('Tutorial not found in summary page')
2929
}
3030
const{ loading, error, data}=useQuery<TutorialData,TutorialDataVariables>(queryTutorial,{
31-
fetchPolicy:'network-only',// to ensure latest
31+
fetchPolicy:'no-cache',// to ensure latest
3232
variables:{
3333
tutorialId:tutorial.id,
3434
// version: tutorial.version.version, // TODO: re-enable latest

‎web-app/src/services/apollo/queries/tutorials.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default gql`
1414
description
1515
}
1616
version {
17+
id
1718
publishedAt
1819
publishedBy {
1920
id

‎web-app/src/services/state/machine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const createMachine = (options: any) => {
239239
},
240240
Completed:{
241241
id:'completed-tutorial',
242-
onEntry:['userTutorialComplete'],
242+
onEntry:['userTutorialComplete'],// unusued
243243
on:{
244244
SELECT_TUTORIAL:{
245245
target:'#select-new-tutorial',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp