Skip to content

[6.x] Fix some reactivity issues#11775

Merged
jasonvarga merged 3 commits intomasterfrom
fix-replicator
May 8, 2025
Merged

[6.x] Fix some reactivity issues#11775
jasonvarga merged 3 commits intomasterfrom
fix-replicator

Conversation

@jasonvarga
Copy link
Copy Markdown
Member

In one of the 6.x changes (either upgrading to Vue 3, or switching to Pinia) when you try to add a new set to a Replicator, it wouldn't update the meta data and caused an error. This seemed to be because the preview text was updating within the meta at around the same moment. This is fixed by making the previews and the row's meta get updated in the same call.


Also, the set's previews were displaying incorrectly due to the following change in #11610.

-const previews = this.previews.filter((value, handle) => {
+const previews = Object.entries(this.previews).filter(([handle, value]) => {

They were showing the handles and incorrect values. Now they just show correct values again.


Finally, there were some reactivity issues around meta data. For example, the initial replicator previews show as null (which is how they come down from the server). The first time the components update them, they aren't reflected. If you collapsed a set that had data in it, you wouldn't see any preview text. You'd need to edit a field for it to update.

Removing the clones seems to fix this. Tracing back where they were first added was like 7 years ago so maybe they were addressing a Vue 2 issue. Vue 3 might just work better. I don't see any issues.

@jasonvarga jasonvarga merged commit d4eccfd into master May 8, 2025
19 checks passed
@jasonvarga jasonvarga deleted the fix-replicator branch May 8, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant