kitlangton / formula

Form Combinator Library for decimating frontend boilerplate.
https://formula.surge.sh
Apache License 2.0
37 stars 17 forks source link

Properly set values in subforms #10

Closed randm-ch closed 1 year ago

randm-ch commented 1 year ago

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 commented 1 year ago

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 :)