Skip to content
Discussion options

You must be logged in to vote

None of them, the problem is with x-for. your x-for is keyed by numeric index so when it repaints it updates existing elements. You need to use a unique reference that is bound to the entry, try using the url for example. In general, keying by index always leads to bugs if your list is meant to change. (also if you want to key by index :key="index" is redundant since it's the default behaviour

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SimoTod
Comment options

SimoTod Aug 11, 2021
Collaborator

@quasipickle
Comment options

Answer selected by quasipickle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants