I am currently refactoring some logic to a uism. How would you call fs/add-form-config in an event handler? Or is that an anti-pattern?
That is totally fine. Use uism/apply-action I think it’s called, and the mutation helper version of that
You can look at the RAD form UISM for an example of handling forms with UISM
(including nested forms etc)
look at the stuff around add-row
So, while you’re at it, consider refactoring to RAD 😄
I thought about the gains with RAD. I have custom filled components built on top of headless UI. It might be worth leveraging RAD in the end.
uism/apply-action to the rescue. Cheers!