#Pinia as a layer

17 messages · Page 1 of 1 (latest)

worn walrus
#

Hi, I’m learning pinia, and I like it so much I thought it should be a layer. Does it makes sense? I thougt in making almost every call to DB from pinia and Nuxt using the info from pinia.

I should have a Store Director to coordinate the Stores. Does it makes sense? Does it have a name? can I find a tutorial of this?

storm barn
#

It’s a good idea. You’d find a similar concept with redux

terse patrol
#

it depends on the complexity of each application i think

worn walrus
#

is not a videogame but kind

#

so would you say is a common thing? to do this with pinia? what kind of docs I can check?

terse patrol
#

it really depends, it sounds like you need to connect stores and affect changes between them, that's kind of already part of vue reactivtity

worn walrus
#

how can I look for docs and tutorials?

#

connected stores that do fetch and all needed

#

Im trying to do it by myself, and then I will ask

worn walrus
#

so far I put the fetch in the store and seems that belongs there

terse patrol
#

yep

#

might be of interest

worn walrus
#

an ORM in pinia? i will check thanks

#

I was using prisma