This repository was archived by the owner on Jul 28, 2023. It is now read-only.
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
useSignalEffect is not working as expected when using visibility: hidden/visible in CSS animations #237
The custom
useSignalEffectimplementation is needed to wait for DOM changes before calling the passed callback. And, while it works great in most of the use cases, we discovered that it doesn't work as expected whenvisibility: hidden/visibleis included in CSS animations.This issue was discovered in the lightbox pull request. And this is a video with a longer explanation of the problem:
https://www.loom.com/share/63bb6d517f2a47398101d15be6b70db6
I assume we will have to triage why this is happening and find out an implementation where this is supported.