-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(base): Add comments and docstrings to initial react-query code …
…MAAASENG-4252 (#5577) - Added comments and docstrings to helper functions surrounding react-query implementation Resolves [MAAASENG-4252](https://warthogs.atlassian.net/browse/MAAASENG-4252)
- Loading branch information
Showing
5 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
import { fetchWithAuth, getFullApiUrl } from "@/app/api/base"; | ||
import type { Zone } from "@/app/store/zone/types"; | ||
|
||
/** | ||
* Fetches a list of zones. | ||
* | ||
* @returns The list of zones | ||
*/ | ||
export const fetchZones = (): Promise<Zone[]> => | ||
fetchWithAuth(getFullApiUrl("zones")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters