#useFetcher fetcher.data is always undefined or null

1 messages · Page 1 of 1 (latest)

high laurel
#

I am able to post to the route properly with 200 status code, but when I tried to inspect the data it is undefined or null. I posted a discussion thread on Github with more information: https://github.com/remix-run/react-router/discussions/11499

GitHub

I tried using the useActionData but it always gets undefined I tried searching for the problem and I see a closed discussion about this, that you must use const fetcher = useFetcher(); fetcher.data...

feral tulip
#

I commented on your post.

high laurel
#

will test out removing the <uploader.Form> and use uploader.submit instead, basically I'm trying to upload file included in a form. I use react-dropzone to facilitate the drag and drop or uploading of the file and use the contents of it.

#

looks like data is still null, it migt be the react-dropzone is incompatible with remix.

feral tulip
#

He uses react-dropzone

high laurel
#

ahh right I saw that as well, let me see it again thanks for reminder