rive-app / rive-react

React runtime for Rive

Home Page:https://rive-app.github.io/rive-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

State machine cannot be interfered with by another hook.

hmmhmmhm opened this issue · comments

스크린샷 2022-12-19 오후 1 12 43

스크린샷 2022-12-19 오후 1 12 35

I want to automatically change a certain state after n seconds. However, the status machine is not detected in any other hook except onClick in the Live component.

I checked that it works in the following way. Thx!

  useEffect(() => {
    console.log('useEffect levelInput', { levelInput })
  }, [levelInput])