Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useFetcher not working for routes that has runtime nodejs #129

Open
joeykamsteeg opened this issue Aug 15, 2024 · 4 comments
Open

useFetcher not working for routes that has runtime nodejs #129

joeykamsteeg opened this issue Aug 15, 2024 · 4 comments

Comments

@joeykamsteeg
Copy link

I have encountered an issue while using useFetcher in Remix. When utilizing useFetcher for a route configured to run on the Edge Runtime, the route is successfully called. However, when the route is set to run on the nodejs runtime, useFetcher returns a 404 Not Found error.

@TooTallNate
Copy link
Member

Can you put together a reproduction repo so that we can take a closer look?

@joeykamsteeg
Copy link
Author

@TooTallNate Sure, I'm on it!

@joeykamsteeg
Copy link
Author

I have made a reproduction repo and running on Vercel, their is a strange twist. In my personal project the node function is not working with useFetcher but in this reproduction repo the Edge function is not working 😅 but the issue is the same.

Extra information: If you try to press the buttons on the live version, you see that only the NodeJS action is popup up in the Network in the inspector. I'm not sure if this is related to 'Single Fetch'

Repo: https://github.com/joeykamsteeg/remix-usefetcher-vercel-issue
Live: https://remix-usefetcher-vercel-issue.vercel.app

@joeykamsteeg joeykamsteeg changed the title useFechter not working for routes that has runtime nodejs useFetcher not working for routes that has runtime nodejs Aug 15, 2024
@joeykamsteeg
Copy link
Author

I have setup a new branch without singleFetch and it seems an issue while using Single Fetch

live: https://remix-usefetcher-vercel-issu-git-c14bdc-joey-kamsteegs-projects.vercel.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants