File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -377,8 +377,14 @@ Callback function invoked when a promise rejects, receives rejection reason (err
377377
378378> ` function(state: any, action: Object, internalReducer: function(state: any, action: Object)) `
379379
380- State reducer to take full control over state updates by wrapping the internal reducer. It receives the current state,
381- the dispatched action and the internal reducer. You probably want to invoke the internal reducer at some point.
380+ State reducer to take full control over state updates by wrapping the [ internal reducer] . It receives the current
381+ state, the dispatched action and the internal reducer. You probably want to invoke the internal reducer at some point.
382+
383+ > This is a power feature which loosely follows the [ state reducer pattern] . It allows you to control state changes by
384+ > intercepting actions before they are handled, or by overriding or enhancing the reducer itself.
385+
386+ [ internal reducer ] : https://github.com/ghengeveld/react-async/blob/master/src/reducer.js
387+ [ state reducer pattern ] : https://kentcdodds.com/blog/the-state-reducer-pattern
382388
383389#### ` dispatcher `
384390
@@ -388,6 +394,9 @@ Action dispatcher to take full control over action dispatching by wrapping the i
388394original action, the internal dispatcher and all component props (or options). You probably want to invoke the internal
389395dispatcher at some point.
390396
397+ > This is a power feature similar to the [ state reducer pattern] . It allows you to control state changes by
398+ > intercepting actions before they are dispatched, to dispatch additional actions, possibly later in time.
399+
391400#### ` defer `
392401
393402> ` boolean `
You can’t perform that action at this time.
0 commit comments