Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Query: Nuxt 3 Plugin vs Direct Import #20

@adrianMustard

Description

@adrianMustard

Just a question on the use of direct imports in this starter app as opposed to setting the SDK up as a native Nuxt plugin.

I noticed this repo imports queries from "~/helper" which in turn imports getter functions from "~/sdk".

Is there a reason that this method has been used as opposed to setting the SDK up within "~/plugins" to take advantage of Nuxt 3's auto-imports?

We managed to get queries working by converting the Nuxt 2 Starter's SDK into a Nuxt 3 plugin, however we were not able to get the live preview running out of the plugin. I'm wondering if you also ran into the same limitation here hence the above approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions