-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Description
Describe the feature
Right now, useAsyncData
uses a ref
to store the data. This means that, when returning an object (or an array), the whole object will be made reactive. This can have unwanted performance penalties, depending on the size of the data that is fetched, and depending on the use-case, is often unneeded when returning static data from an API call that is not meant to be changed.
It would be great if you could use a shallowRef
instead.
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
danielroe, huang-julien, TheAlexLichter, sadeghbarati, logotip4ik and 7 more