Skip to content

Commit

Permalink
Merge pull request #309 from zazapeta/patch-1
Browse files Browse the repository at this point in the history
docs: Fixed broken link: 'internal reducer'
  • Loading branch information
ghengeveld committed Oct 19, 2020
2 parents 94e929d + 9e122b0 commit 4b6be36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Callback function invoked when a promise is cancelled, either manually using `ca

> `function(state: any, action: Object, internalReducer: function(state: any, action: Object))`
State reducer to take full control over state updates by wrapping the [internal reducer](https://github.com/async-library/react-async/blob/master/src/reducer.js). It receives the current state, the dispatched action and the internal reducer. You probably want to invoke the internal reducer at some point.
State reducer to take full control over state updates by wrapping the [internal reducer](https://github.com/async-library/react-async/blob/master/packages/react-async/src/reducer.ts). It receives the current state, the dispatched action and the internal reducer. You probably want to invoke the internal reducer at some point.

> This is a power feature which loosely follows the [state reducer pattern](https://kentcdodds.com/blog/the-state-reducer-pattern). It allows you to control state changes by intercepting actions before they are handled, or by overriding or enhancing the reducer itself.
Expand Down

0 comments on commit 4b6be36

Please sign in to comment.