File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
app/(app)/challenges/[id]/_components/ide Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ const Modified = CodeMirrorMerge.Modified;
4040export default function CompareAnswer ( { id } : CompareAnswerProps ) {
4141 const { data } = useSuspenseQuery ( COMPARE_ANSWER_QUERY , {
4242 variables : { id } ,
43+ fetchPolicy : "cache-and-network" ,
4344 } ) ;
4445
4546 const { referenceAnswerResult, lastSubmission } = data . question ;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export const MY_ANSWER = graphql(`
2929export default function MyAnswer ( { id } : MyAnswerProps ) {
3030 const { data } = useSuspenseQuery ( MY_ANSWER , {
3131 variables : { id } ,
32+ fetchPolicy : "cache-and-network" ,
3233 } ) ;
3334
3435 if ( ! data . question . lastSubmission ) {
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ function CodePreview({
8787export default function SubmissionHistory ( { id } : SubmissionHistoryProps ) {
8888 const { data } = useSuspenseQuery ( SUBMISSION_HISTORY , {
8989 variables : { id } ,
90+ fetchPolicy : "cache-and-network" ,
9091 } ) ;
9192
9293 const submissions = data ?. question ?. userSubmissions || [ ] ;
You can’t perform that action at this time.
0 commit comments