Skip to content

Commit

Permalink
fix: add callOnce key for fetching initialData
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Narowski committed Jun 18, 2024
1 parent 215a732 commit 0ebfa8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/middleware/initialData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ async function fetchInitialData (to: RouteLocationNormalized) {
}

export async function t3initialDataMiddleware (to: RouteLocationNormalized) {
await callOnce(async () => await fetchInitialData(to))
await callOnce('t3:initialData', async () => await fetchInitialData(to))
}

0 comments on commit 0ebfa8c

Please sign in to comment.