mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-26 13:00:00 -05:00
3e4c10cb31
wow there's like no code here lol
13 lines
455 B
TypeScript
13 lines
455 B
TypeScript
import AsyncStorage from "@react-native-async-storage/async-storage";
|
|
import { UseQueryResult, useQuery } from "@tanstack/react-query";
|
|
import { AsyncStorageKeys } from "../../enums/async-storage-keys";
|
|
import { QueryKeys } from "../../enums/query-keys";
|
|
|
|
|
|
export const useServerUrl: UseQueryResult<string> = useQuery({
|
|
queryKey: [QueryKeys.ServerUrl],
|
|
queryFn: (() => {
|
|
return AsyncStorage.getItem(AsyncStorageKeys.ServerUrl);
|
|
})
|
|
});
|