Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/bright-coins-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect-app/vue-components": patch
---

fix: watch callback in useOmegaForm
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ export const useOmegaForm = <
// /** @experimental */
handleSubmitEffect,
registerField: (field: ComputedRef<{ name: string; label: string; id: string }>) => {
watch(field, (f) => fieldMap.value.set(f.name, { label: f.label, id: f.id }), { immediate: true })
watch(field, (f) => { fieldMap.value.set(f.name, { label: f.label, id: f.id }) }, { immediate: true })
onUnmounted(() => {
// Only delete if this component instance still owns the registration (id matches)
// This prevents the old component from removing the new component's registration
Expand Down
Loading