Closed waltervanwoudenberg closed 2 months ago
Hi! Do you get the error during production or when running locally?
Hi! Do you get the error during production or when running locally?
I got it only when running locally in dev mode, but what I do get in production and during dev is the animation stops playing when I focus/click on an input element or when I click in my dev tools. So somehow when the focus is somewhere else it stops playing.
That's by design – to keep the animation from using CPU when the browser window isn't active. Input elements should maybe be excluded from this behavior, though. 🤔 I'll probably add it in the next update. 😇
The error message, by the way, is common when using Lit-based web components with React in dev-mode. It's caused by the extra re-renders React does when in dev-mode.
Version 3 out now, without Lit – so without this issue 😎
Hello,
When I use the player in two different pages:
/login
and/signup
I get the following error when going from one page to the other:The component im using looks like this:
Do you have any idea how to fix this issue?