(metadata: MetadataState<BuildInfoResponse>)
| 6 | const buildInfoKey = ["buildInfo"] as const; |
| 7 | |
| 8 | export const buildInfo = (metadata: MetadataState<BuildInfoResponse>) => { |
| 9 | // The version of the app can't change without reloading the page. |
| 10 | return cachedQuery({ |
| 11 | metadata, |
| 12 | queryKey: buildInfoKey, |
| 13 | queryFn: () => API.getBuildInfo(), |
| 14 | }); |
| 15 | }; |
no test coverage detected