I have custom react-admin pages that often query multiple resources (account, posts, comments for the same page).
I am using redux sagas to handle API requests as side-effects while decoupling my view component from this logic.
Since react-admin 3.0, to correctly use the dataProvider
with all react-admin's error handling and notifications, I should use the useDataProvider
hook, but - hooks cannot be used from within sagas, so how should I orchestrate multiple requests from a saga?
Or is there another practice, while keeping the requirements I mentioned?
Thanks!