Skip to content

Commit

Permalink
Fix a typo in controlled-inputs.md (#408)
Browse files Browse the repository at this point in the history
In the referenced example, `transient` has its value set to `false` (not `true`).
  • Loading branch information
rileyjshaw authored Nov 27, 2022
1 parent 57143f0 commit 5e80cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/controlled-inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ See an [example in Storybook](https://leva.pmnd.rs/?path=/story/misc-controlled-

## onChange

`onChange` callback in the schema is called for all changes to the value. Values with `onChange` will no longer cause React to rerender (unless passing an additional `transient` flag set to `true`, see below), so you can use it to efficiently update frequently changing values.
`onChange` callback in the schema is called for all changes to the value. Values with `onChange` will no longer cause React to rerender (unless passing an additional `transient` flag set to `false`, see below), so you can use it to efficiently update frequently changing values.

```jsx
const divRef = React.useRef(null)
Expand Down

0 comments on commit 5e80cd1

Please sign in to comment.