From 5e80cd1e9c24250fab589bfb0ae1d01cdd001997 Mon Sep 17 00:00:00 2001 From: Riley Shaw Date: Sun, 27 Nov 2022 04:09:58 -0500 Subject: [PATCH] Fix a typo in `controlled-inputs.md` (#408) In the referenced example, `transient` has its value set to `false` (not `true`). --- docs/advanced/controlled-inputs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/controlled-inputs.md b/docs/advanced/controlled-inputs.md index 891fe79b..49907ff8 100644 --- a/docs/advanced/controlled-inputs.md +++ b/docs/advanced/controlled-inputs.md @@ -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)