peternovakP
tRPCβ€’3y ago
peternovak

Call multiple TRPC endpoints from onSuccess()?

I would like to create an API chain for analysing a geographic area where one successful API call can lead to multiple new API's being called to render the components in the right orders for the user. This works really well for single API calls, but when combining multiple of them together to be triggered at a onSuccess() call, the trpc combines them all together instead of taking them one by one.

Does anyone know how to solve this?
image.png
image.png
Was this page helpful?