Skip to content

Commit

Permalink
Update patches.md
Browse files Browse the repository at this point in the history
This PR adds version 6 specific code for patches.
  • Loading branch information
davidkpiano committed Jul 18, 2020
1 parent 6371d05 commit ba62b24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/patches.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ To help with replaying patches, `applyPatches` comes in handy. Here is an exampl
```javascript
import produce, {applyPatches} from "immer"

// version 6
import {enablePatches} from "immer"
enablePatches()

let state = {
name: "Micheal",
age: 32
Expand Down

0 comments on commit ba62b24

Please sign in to comment.