Skip to content

Commit c5218d5

Browse files
committed
restore cache behavior
1 parent 94c81a4 commit c5218d5

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

composables/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export async function useFetchQuery<R>(
7474
}
7575

7676
return $fetch<R>(url, {
77+
cache: "no-cache",
7778
credentials: "same-origin",
7879
...options,
7980
query,

firestore.indexes.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,32 @@
578578
}
579579
]
580580
},
581+
{
582+
"collectionGroup": "courses",
583+
"queryScope": "COLLECTION",
584+
"fields": [
585+
{
586+
"fieldPath": "indexes",
587+
"arrayConfig": "CONTAINS"
588+
},
589+
{
590+
"fieldPath": "level",
591+
"order": "ASCENDING"
592+
},
593+
{
594+
"fieldPath": "place",
595+
"order": "ASCENDING"
596+
},
597+
{
598+
"fieldPath": "name",
599+
"order": "ASCENDING"
600+
},
601+
{
602+
"fieldPath": "createdAt",
603+
"order": "DESCENDING"
604+
}
605+
]
606+
},
581607
{
582608
"collectionGroup": "courses",
583609
"queryScope": "COLLECTION",

0 commit comments

Comments
 (0)