|
Ran
|
Jobs
1
|
Files
0
|
Run time
–
|
Badge
README BADGES
|
push
github
refactor(web): update l10n query keys to use array form (#2428) ## Problem When switching the web interface language, the language and keyboard selectors display outdated content unless the user performs a full "force refresh". This was caused by incomplete cache invalidation: the L10nConfigChanged event handler [only invalidates the "l10n/config" cache entry](https://github.com/agama-project/agama/blob/cffc74390/web/src/queries/l10n.ts#L91), leaving related data like _locales_ and _keymaps_ translations stale. ## Solution * Replaced string-based query keys (e.g. "l10n/config") with array-based keys (e.g. ["l10n", "config"]) to align with TanStack Query best practices. This enables partial matching and more flexible cache invalidation. * Updated the L10nConfigChanged event handler to invalidate the broader ["l10n"] namespace instead of just ["l10n", "config"], ensuring all related localization queries are refreshed correctly.
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | rust - 15417516933.1 | 118 | GitHub Action Run |