fix: update effect dependencies to use fetcher.data for improved error handling in dialogs
This commit is contained in:
@@ -37,7 +37,7 @@ export const DialogUpload = () => {
|
||||
|
||||
setUploadedFile(fetcher.data.uploadData.data.file_url)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [fetcher])
|
||||
}, [fetcher.data])
|
||||
|
||||
const handleChange = async function (event: ChangeEvent<HTMLInputElement>) {
|
||||
event.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user