Skip to content

Commit

Permalink
Create great-grapes-clean.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer authored Oct 1, 2020
1 parent 356d3c2 commit 4148181
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .changeset/great-grapes-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"formik": minor
---

`setValue` can now optionally accept a function as a callback, exposing `React.SetStateAction` functionality. Previously, only the entire object was
allowed which caused issues with stale props.

```tsx
setValues(prevValues => ({...prevValues, ... }))
```

0 comments on commit 4148181

Please sign in to comment.