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
{{ message }}
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
π The bug
When using useFetch, TTFB is ~250-300ms on an almost blank page.
Replacing the call with useAsync yields a significantly lower TTFB of ~30ms
π οΈ To reproduce
Steps to reproduce the behavior:
The same scenario can be observed in production as well.
π Expected behaviour
Having both helpers yielding roughly the same TTFB given the same use case
UPDATE: The Nuxt 3 useAsyncData implementation does not have perf issues (at the time of writing π).
UPDATE2: Seems like it is the callFetches function that causes the perf degredation
The text was updated successfully, but these errors were encountered:
π The bug
When using
useFetch
, TTFB is ~250-300ms on an almost blank page.Replacing the call with
useAsync
yields a significantly lower TTFB of ~30msπ οΈ To reproduce
Steps to reproduce the behavior:
Go to https://github.com/manniL/nuxt-capi-usefetch-overhead and follow the README:
yarn
yarn dev
To ensure it is not caused by underlying
fetch
:The same scenario can be observed in production as well.
π Expected behaviour
Having both helpers yielding roughly the same TTFB given the same use case
UPDATE: The Nuxt 3
useAsyncData
implementation does not have perf issues (at the time of writing π).UPDATE2: Seems like it is the
callFetches
function that causes the perf degredationThe text was updated successfully, but these errors were encountered: