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

fix: using useFetch breaks raise undefined error on 404 page #554

Open
farnabaz opened this issue Sep 16, 2021 · 1 comment
Open

fix: using useFetch breaks raise undefined error on 404 page #554

farnabaz opened this issue Sep 16, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@farnabaz
Copy link
Member

๐Ÿ› The bug
When using useFetch composable inside setup function will raise undefined error when navigating to 404 page.

I think this might be related to generating fetchKey

๐Ÿ› ๏ธ To reproduce
This issue only happens in static website, Steps to reproduce the behavior:

  1. Clone https://github.com/nuxt/nuxtjs.org/tree/32f6498640d0cb99772a70fc8cf27477351ad767
  2. yarn generate
  3. yarn start
  4. Go to /404 page and check web console

๐ŸŒˆ Expected behaviour

Evaluating fetch hook without raising an error.

@farnabaz farnabaz added the bug Something isn't working label Sep 16, 2021
@kilobyte2007
Copy link

kilobyte2007 commented Jul 7, 2022

This is an issue for me too, any progress here?

Are there plans to fix this in the 2.*
I might be willing to help with a PR if someone points me in the right direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants