fix(EventListView): added requestKey to disable autocancalation of listSlotsQuery
Build and Push Docker image / build-and-push (push) Successful in 1m52s
Details
Build and Push Docker image / build-and-push (push) Successful in 1m52s
Details
This commit is contained in:
parent
5ded51db47
commit
cf82f4f957
|
@ -15,7 +15,9 @@ export default function EventListView({event, listId}: { event: EventModel, list
|
||||||
|
|
||||||
const listQuery = useQuery({
|
const listQuery = useQuery({
|
||||||
queryKey: ["event", "list", listId],
|
queryKey: ["event", "list", listId],
|
||||||
queryFn: async () => (await pb.collection("eventLists").getOne(listId)),
|
queryFn: async () => (await pb.collection("eventLists").getOne(listId, {
|
||||||
|
requestKey: listId
|
||||||
|
})),
|
||||||
enabled: !!listId
|
enabled: !!listId
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -24,7 +26,8 @@ export default function EventListView({event, listId}: { event: EventModel, list
|
||||||
queryFn: async () => (await pb.collection("eventListSlotsWithEntriesCount").getList(activePage, 10, {
|
queryFn: async () => (await pb.collection("eventListSlotsWithEntriesCount").getList(activePage, 10, {
|
||||||
filter: `eventList='${listId}'`,
|
filter: `eventList='${listId}'`,
|
||||||
sort: "startDate",
|
sort: "startDate",
|
||||||
enabled: !!listId
|
enabled: !!listId,
|
||||||
|
requestKey: listId
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue