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
https://github.com/getshcc/nuxt-auth
when using useFetch in *.vue file after submit form for first time. The form is submitted for each key press.
useFetch
*.vue
Mongodb:
when i changed useFetch to $fetch problem fixed.
$fetch
No response
The text was updated successfully, but these errors were encountered:
You shouldn't register useFetch inside a function, it should almost always be on the top level scope. Here's a video explaining why and how to properly use it: https://www.youtube.com/watch?v=njsGVmcWviY, alternatively note the info box in the docs: https://nuxt.com/docs/api/composables/use-fetch
Sorry, something went wrong.
No branches or pull requests
Environment
Reproduction
https://github.com/getshcc/nuxt-auth
Describe the bug
when using
useFetch
in*.vue
file after submit form for first time. The form is submitted for each key press.Mongodb:
![useFetch-2024-25-1](https://private-user-images.githubusercontent.com/92691902/299464146-dd33e33c-80d3-4cca-ac32-0d0637f14d0a.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NzY5NzgsIm5iZiI6MTcxOTc3NjY3OCwicGF0aCI6Ii85MjY5MTkwMi8yOTk0NjQxNDYtZGQzM2UzM2MtODBkMy00Y2NhLWFjMzItMGQwNjM3ZjE0ZDBhLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE5NDQzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwYmM0MDdkODVjODJmMmRlODkxYTBlYTkxNGQwMjE4NDVjN2Y1OGI2OTQ2MThhYTEyMTgxYjNkMjQ2NjZlZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QFE7HYV7XiRlG4LPxN61MlRLtO_Vtac-fq2ONtDLbxs)
Additional context
when i changed
useFetch
to$fetch
problem fixed.Logs
No response
The text was updated successfully, but these errors were encountered: