Skip to content

Commit

Permalink
Update EXAMPLES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nehle authored Apr 19, 2023
1 parent 645b540 commit d3d7fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ maintain a `version` property of the state, and reject any actions that aren't
being fired from an up-to-date state.

```javascript
import {filter, withDefault, compose} from "horux";
import {nextIf, withDefault, compose} from "horux";
import reducer from "./reducer";

const verifyVersion = filter((state, action) => state.version === action.expectedVersion);
const verifyVersion = nextIf((state, action) => state.version === action.expectedVersion);
const bumpVersion = (state) => {...state, version: state.version + 1};
const defaultState = {version: 0}

Expand Down

0 comments on commit d3d7fc3

Please sign in to comment.