-
Sorry I closed the discussion that was up earlier a little too soon. Since it's been marked as done, I'm opening a new one to continue. I made an example repo of the issue I'm having: Actually I spoke too soon, can't get it to work even with these changes: export const useDeck = defineQuery(() => {
const route = useRoute("deck-deckId");
// const deckId = computed(() => Number(route.params.deckId));
const result = useQuery({
key: () => ["decks", { deckId: Number(route.params.deckId) }],
query: () => useRequestFetch()(`/api/decks`).then(decks => {
return decks.find(d => d.id === Number(route.params.deckId));
}) as Promise<(Deck & { cardCount: number }) | undefined>,
});
return {
...result
}
}); Initial load works, but navigating back and forth doesn't trigger another fetch. Tried using Edit: I'll see if i can setup a minimum repro in a bit Edit: Repro here Sorry but I forgot to mention earlier that I'm using Originally posted by @marpe in #144 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This seems to come from Nuxt: |
Beta Was this translation helpful? Give feedback.
-
Hi everyone! Same for me. Any workarounds on this issue? |
Beta Was this translation helpful? Give feedback.
Fixed in 2307daf. I checked locally and it's working now 🎉