From 5d764daa105d5eee596e6316a234074886f5bdb3 Mon Sep 17 00:00:00 2001 From: Daymon <17409137+daymxn@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:14:53 -0500 Subject: [PATCH] Fix use-throttle-state example param --- src/use-throttle-state/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use-throttle-state/README.md b/src/use-throttle-state/README.md index af8b999..0c111a7 100644 --- a/src/use-throttle-state/README.md +++ b/src/use-throttle-state/README.md @@ -28,7 +28,7 @@ Throttle viewport size updates to once per second. ```tsx function ViewportProvider() { const camera = useCamera(); - const [viewport, setViewport] = useThrottleState(camera.ViewportSize, { time: 1 }); + const [viewport, setViewport] = useThrottleState(camera.ViewportSize, { wait: 1 }); useEventListener(camera.GetPropertyChangedSignal("ViewportSize"), () => { setViewport(camera.ViewportSize);