You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn run nuxt build && yarn run nuxt export && http-server dist && xdg-open localhost:8080
When I load index and navigate to the page test, I can see the network request in the Network tab of the browser.
π Expected behaviour
The HTTP request should not be executed on client-side.
βΉοΈ Additional context
I know there is useStatic but it does not allow to set a server target (if you want to make a second build which get data from client-side), does not support enablePreview, and other features implemented by nuxt static mode.
Also, useStatic requires code changes (which is specific to this package) instead of the useFetch implementation which has the same behavior as Nuxt's Options API.
Btw, thanks for this module :) It's awesome to combine the Composition API with Nuxt ! π
The text was updated successfully, but these errors were encountered:
π The bug
When using
useFetch
hook and generating a full-static build (target: static) andnuxt export
, the useFetch payload is not saved.π οΈ To reproduce
pages/test.vue
nuxt.config.js
yarn run nuxt build && yarn run nuxt export && http-server dist && xdg-open localhost:8080
When I load index and navigate to the page
test
, I can see the network request in the Network tab of the browser.π Expected behaviour
The HTTP request should not be executed on client-side.
βΉοΈ Additional context
I know there is
useStatic
but it does not allow to set a server target (if you want to make a second build which get data from client-side), does not supportenablePreview
, and other features implemented by nuxt static mode.Also,
useStatic
requires code changes (which is specific to this package) instead of theuseFetch
implementation which has the same behavior as Nuxt's Options API.Btw, thanks for this module :) It's awesome to combine the Composition API with Nuxt ! π
The text was updated successfully, but these errors were encountered: