Skip to content

AsyncData with a shallow ref #12406

@P4sca1

Description

@P4sca1

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions