Skip to content

Problem: How to handle dynamic store on runtime? #784

Closed Answered by posva
AhsanAbrar asked this question in Help and Questions
Discussion options

You must be logged in to vote

I was thinking of a regular array travelers where

travelers.push({
  id: someGeneratedId,
  name: '',
  age: ''
})

It doesn't really change v-model, you go through the array of travelers with a v-for:

<li v-for="traveler in travelers" :key="traveler.id"><input v-model="traveler.name"></li>

In vuex, the point of dynamic modules was adding store pieces by plugins and also lazily loading them. But on Pinia, due to its api, this is no longer a concern.

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Further information is requested
8 participants
Converted from issue

This discussion was converted from issue #73 on November 08, 2021 10:15.