Fork me on GitHub
#reagent
<
2016-12-03
>
curtosis00:12:37

Is it possible in reagent-forms to bind to dynamic bits of a document? something like:

(row … [:input {:field :text :id :person1.person.full-name}])
(row … [:input {:field :text :id :person2.person.full-name}])
where :person1 and :person2 are added to the document atom?

curtosis00:12:17

it seems like in theory it should work a la {:field :text :id (sub-item row-entry :person.full-name)}, but what gets computed when might get tricky. . .

borkdude18:12:44

@pesterhazy Thanks. Looks like this doesn’t tell me more than I already knew though. In did-component-update it’s not possible to get the newest props, only the previous ones?

juhoteperi20:12:19

@borkdude Use r/props for current props, and function arguments for previous ones

borkdude20:12:14

@juhoteperi I think I tried it, but don’t know why I didn’t use it eventually. I’ll try this monday again, thanks

pesterhazy20:12:28

It's explained in Martin's blog post