So I have a form
that contains the data about two tables on the backend:
- table zone, and
- table area
Normally, the update
method in react-admin
is just straight forward, but in this case not really.
So I have taken the data from the zone
and area
tables and put it in one form.
I also altered the saveButton
to tweak the form values
before submitting the form according to this react-admin documentation so in this way values are in correct form before submitting.
The challenge is that...
When I click the button somehow in onClick
, I would need to execute the update
on 2 endpoints with 2 update
calls to dataProvider
. I was thinking to use redux-saga
for this case, but didn't have luck yet.
Any ideas, hints, or code examples are welcome.