Skip to content

Commit

Permalink
docs(README): fixed link about comparisonFn example link (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
helderberto committed Feb 17, 2020
1 parent 5e5ec49 commit 01039b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -469,7 +469,7 @@ const store = createStore(rootReducer);
export default store;
```

The comparison function receives the action dispatched when offline and the current `actionQueue`. The result of the function will be either `undefined`, meaning no match found, or the action that matches the passed in action. So basically, you need to return the upcoming action if you wish to replace an existing one. An example of how to use it can be found [here](https://github.com/rgommezz/react-native-offline/blob/master/test/reducer.test.js#L121).
The comparison function receives the action dispatched when offline and the current `actionQueue`. The result of the function will be either `undefined`, meaning no match found, or the action that matches the passed in action. So basically, you need to return the upcoming action if you wish to replace an existing one. An example of how to use it can be found [here](https://github.com/rgommezz/react-native-offline/blob/master/test/reducer.test.ts#L124).

```js
function comparisonFn(
Expand Down

0 comments on commit 01039b9

Please sign in to comment.