We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ideally we should use a variant for the fetcher type, this may require wrapping the remix useFetcher and adding some small conversion functions.
fetcher
The text was updated successfully, but these errors were encountered:
Im trying to make a resource route from an unconventional route filename.
when I call Fetcher.load() I am getting an error where the data is looking in the unconventional route
Fetcher.load()
my folder structure looks like this
app/ ├── res-routes/ │ └── Root_FetchGuilds.js │ └── Root_Index.js ├── routes/ │ └── index.js │ └── fetchGuilds.js └── root.res
routes/fetchGuilds.js imports from res-routes/Root_FetchGuilds
routes/fetchGuilds.js
res-routes/Root_FetchGuilds
import { loader } from '~/res-routes/Root_FetchGuilds.js' export { loader }
I am getting this error:
Error: Route "res-routes/Root_FetchGuilds" does not match URL "/fetchGuilds"
and the URL from useFetcher looks like this
/fetchGuilds?_data=res-routes/Root_FetchGuilds
when it should be /fetchGuilds?_data=routes/fetchGuilds
/fetchGuilds?_data=routes/fetchGuilds
Sorry, something went wrong.
No branches or pull requests
Ideally we should use a variant for the
fetcher
type, this may require wrapping the remixuseFetcher
and adding some small conversion functions.The text was updated successfully, but these errors were encountered: