Skip to content

feat: add geopf sync - #1178

Draft
abulte wants to merge 2 commits into
mainfrom
feat/geopf
Draft

feat: add geopf sync#1178
abulte wants to merge 2 commits into
mainfrom
feat/geopf

Conversation

@abulte

@abulte abulte commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

abulte added 2 commits July 29, 2026 12:17
NuxtPage's page-key was bound to an inline arrow function
(`route => route.fullPath`) in two admin layouts. Vue recreates that
function on every render of the owning component, and NuxtPage
compares page-key by reference (not by the value it computes) to
decide whether to fire the page-loading indicator. A fresh reference
for the same route is treated as "the page changed", firing
page:loading:start with no matching navigation to ever complete it,
so the top loading bar gets stuck.

This went unnoticed because nothing previously triggered it: it only
fires when the owning component re-renders while mounted, e.g. when
pages/admin/datasets/[id].vue's own `dataset` (fetched via the same
useAPI call/URL/options as a nested tab's own dataset fetch, and
therefore sharing the same Nuxt useFetch cache key) gets refreshed by
that nested tab.

Fix: bind page-key to a stable, hoisted function instead of an inline
one in pages/admin.vue and pages/admin/datasets/[id].vue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant