Function setDefaultWaitablesConsumerIfErrorTransformer
Sets the default transformer to use with WaitablesConsumer for the error case. This will be automatically added as the lowest priority
transformer on each WaitablesConsumer.
This is useful, for example, to render error indicators in places where more-precise handling isn't required.
The transformer receives the collection of dependencies passed to the WaitablesConsumer as well as the ReactNode returning the
waitable used for rendering, which could be reset when the user clicks the error indicator, for example.
Sets the default transformer to use with
WaitablesConsumer
for the error case. This will be automatically added as the lowest priority transformer on eachWaitablesConsumer
.This is useful, for example, to render error indicators in places where more-precise handling isn't required.
The transformer receives the collection of dependencies passed to the
WaitablesConsumer
as well as theReactNode
returning the waitable used for rendering, which could be reset when the user clicks the error indicator, for example.