refactor: collections import export

This commit is contained in:
Andrew Bastin
2021-12-20 15:58:04 +05:30
parent ba3d3430c0
commit ba3df75a23
4 changed files with 465 additions and 368 deletions

View File

@@ -162,6 +162,11 @@ export function useColorMode() {
return $colorMode
}
export function useAxios() {
const { $axios } = useContext()
return $axios
}
export function usePolled<T>(
pollDurationMS: number,
pollFunc: (stopPolling: () => void) => T