Bazze
Bazze
NNuxt
Created by Bazze on 7/23/2024 in #❓・help
Layer override / File override
I've been working a little with layers. Only just realized i could have each layer as a sub repo's instead of a monorepo. But my question. Lets say i have a composable ~/composables/useCurrentUser.ts in an auth layer. If i recreate that file and function in my app project, basically "overriding" the layer with different logic. Will nuxt use my app project logic instead of the auth layers'? Extending this, when using drizzle, you gotta generate migrations once in a while. Which seems to be quite picky with specifically using drizzle-kit commands to generate them. So would it be possible to get the full paths of files in each layer ./server/db/schema/*.ts while still respecting the "overriding" from other layers and app project. So that it will be possible to construct a list of schema files in .nuxt for drizzle.config.ts
1 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
No description
25 replies
NNuxt
Created by Bazze on 4/25/2024 in #❓・help
Pinia and useState
Im building a new store, and remembered the newish useState composable. Normally i would use ref in a Pinia store, but since useState is described in the docs as useState is an SSR-friendly ref replacement. Should i then use useState within the Pinia store? Havent been able to find anyone else asking this question. Im specifically using setup stores.
10 replies