NuxtN
Nuxt2y ago
PoTTii

Nuxt 3 Repository Pattern - Best Practice?

What is the way to go nowadays to manage API Calls in a repository pattern? I followed a Medium Post (https://medium.com/@luizzappa/nuxt-3-repository-pattern-organising-and-managing-your-calls-to-apis-with-typescript-acd563a4e046), but since Nuxt 3.10 you run into warnings because every method uses useAsyncData and sometimes I'm gonna call a method to be used after a user intreaction, so on client side only.

Can anony recommand another way / resource to do it?
Medium
Was this page helpful?