You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
CSS api does not support dynamic styles. Styles are always the same as they there when component was declared.
const[enabled,setEnabled]=createSignal(false)const[backgroundBlue,setBackgroundBlue]=createSignal(false)// No matter 'backgroundBlue' value class will always be redconstenterActive=()=>(backgroundBlue() ? 'blue-enter' : 'red-enter')constexitActive=()=>(backgroundBlue() ? 'blue-exit' : 'red-exit')return(<Transitionenter={cssEnter({active: enterActive()})}exit={cssExit({active: exitActive()})}><Showwhen={enabled()}fallback={<div>Disabled</div>}><div>Enabled</div></Show></Transition>)
Seems like the fix in 0.5.6 has some unintended side effects; calling the helpers inline i.e. enter={cssEnter(... will cause them to be called again whenever the children change, breaking the default behaviour of the enter helpers (skip initial animation). I've reverted the fix with 0.5.7 for now. Seems like the best way forwards is to support passing getters into the helpers.
CSS api does not support dynamic styles. Styles are always the same as they there when component was declared.
Reproduction
The text was updated successfully, but these errors were encountered: