Fork me on GitHub

does anybody have a uism for forms sitting around? still learning the uism package and it'd be nice to have something to work off of

grant19:08:40 uses them for all the forms, if you want to check that out.

fulcro 1

oh awesome, ty


i'm also wondering--if i want to have my reusable form state machine make reference to form-specific mutations (e.g. save-user, save-product, ...) what's the best way to hand the reference to that remote mutation to the uism? i can't seem to find a discussion of this in the docs. i guess one option is to put it in the form class's config (`(defsc ProductEditForm [...] {:ident ... :save-mutation save-product} ...) ) but maybe there's a better way


Note that you only really need one save…the form diffs are normalized minimal diffs. One save covers them all. See RAD for that as well.


security can simply be an additional layer


but yes, what you are suggesting is what I’d recommend for making component-centric mutations…you could also pass them in the event data to uism begin! and through those mutation names in local store of the UISM with uism/store.


and I do that exactly - store the mutation on using sm/store and then invoke it using sm/retrieve


thank you both, it helped to see some examples! I ended up writing my own, posting here for posterity