1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 14:44:21 +00:00

Fix missing deps

This commit is contained in:
Steffo 2022-07-16 16:06:07 +02:00
parent 990e7e1d7e
commit 33913d9abb
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ export function useAxiosRequest<Output = any, Input = any>(config: AxiosRequestC
async (funcConfig: AxiosRequestConfig<Input> = {}): Promise<AxiosResponse<Output, Input>> => {
return await axios.request({ ...config, ...funcConfig })
},
[config]
[axios, config]
)
const promiseHook = usePromise(performRequest)

View file

@ -96,7 +96,7 @@ export function usePromise<D, P, E = Error>(func: UsePromiseFunction<D, P>): Use
dispatch({ type: "fulfill", result })
return
},
[]
[func]
)
return { ...state, run }

View file

@ -13,7 +13,7 @@ export function usePostcardImage(src: PostcardSource) {
() => {
setSrc(src)
},
[src]
[src, setSrc]
)
}