Refactor API requests and update component keys
This commit is contained in:
@ -43,6 +43,9 @@ const useServerRequest = async <T>(
|
||||
endpoint: string,
|
||||
config?: Omit<FetchOptions, 'method'>
|
||||
): Promise<T> => {
|
||||
console.log('config----', config);
|
||||
|
||||
// @ts-ignore
|
||||
return useServerRequest<T>(endpoint, { ...config, method: 'GET' })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user