Version: Next
Mutations Pending Plugin
#
Use casesThis plugin helps you tracking pending state for multiple mutation.
This is useful if you want to show in your UI a global loader if any mutations
is in pending state.
This plugins is implemented with it's own piece of state so you can use it
without have to specfy reducer on your mutations.
Under the hood a counter is increment for every mutation PENDING
and decrement for
every mutation SUCCESS
, FAILURE
.
#
SelectorsThis plugin inject the anyMutationPending
selector that returs a boolean.
#
UsageIf you call it without args the plugin tracks ALL mutations.
You can pass it a list that specify which mutations should tracked: