From 6ce60a69c84a31c99b0b2034b0f8ae2b92763369 Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Mon, 11 Nov 2024 11:57:55 -0300 Subject: [PATCH] updateDerive inside requestAnimationFrame --- bau/bau.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bau/bau.js b/bau/bau.js index 7f9ba0aa..f07766cc 100644 --- a/bau/bau.js +++ b/bau/bau.js @@ -72,7 +72,8 @@ export default function Bau(input) { } } } - updateDerive(state); + + _window.requestAnimationFrame(() => updateDerive(state)); bindingCleanUp(); };