Skip to content

Properly set values in subforms#10

Merged
kitlangton merged 2 commits intokitlangton:masterfrom
randm-ch:master
Jan 22, 2023
Merged

Properly set values in subforms#10
kitlangton merged 2 commits intokitlangton:masterfrom
randm-ch:master

Conversation

@randm-ch
Copy link
Copy Markdown
Contributor

Instead of relying on setTimeout which can be flaky for obvious reasons, we now spawn a listener on the updating Signal to set the new value on the subform.

The downside here is that an Owner must be spawned each time we do this (I'm not sure about the overhead?) but we can can also kill again it each time it's done; hopefully this is enough to prevent leaks.

@kitlangton
Copy link
Copy Markdown
Owner

I'll take it! Perhaps the experts on the laminar gitter might have some ways of getting around the manual owner, but this seems great for now :)

@kitlangton kitlangton merged commit 23b3f29 into kitlangton:master Jan 22, 2023
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.

2 participants