fleet/frontend/router
Gabriel Hernandez 58fb563433
Fix showing app-wide warning banners correctly on the first page load. (#20806)
relates to #20784

this fixes an issue where the app-wide warning banners were not loading
on the first-page load.

> NOTE: I changed the fetch method for the data needed for the app-wide
banners (e.g. abm, apns, vpp token data) to use react-query `useQuery`
method as it follows our usual pattern for `GET` requests in components.
To enable this, I moved up the react-query query client wrapper in the
`AppWrapper component in `/frontend/router/index.tsx` file. This also
gives us better control of when/how often this request is initiated.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [ ] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-07-30 13:37:33 +01:00
..
components UI – Refrain from clearing the auth_token and redirecting to login for errors specific to this scenario (#14911) 2023-11-03 08:32:41 -07:00
index.tsx Fix showing app-wide warning banners correctly on the first page load. (#20806) 2024-07-30 13:37:33 +01:00
page_titles.ts Merge branch 'main' into 15919-vulnerabilities-page 2024-02-22 16:27:15 -06:00
paths.ts UI – Always allow i(Pad)OS Refetch; update copy and naming for broader "Apple" MDM (#20674) 2024-07-25 12:19:23 -07:00
url_prefix.ts add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00