Re render on filter in a for
I have an animation that runs when the element is visible with an observable the problem is after the first animation is all good but I have a button that filters that for, and when it gets filtered it doesn't re-render
I solve this in react by changing the key of the element so react detects that the filter is a new element every time, how can this be done in solid?
1 Reply
This does not solve the actual problem, but you can use TransitionGroup, see https://github.com/solidjs-community/solid-transition-group
GitHub
GitHub - solidjs-community/solid-transition-group: SolidJS componen...
SolidJS components for applying animations when children elements enter or leave the DOM. - GitHub - solidjs-community/solid-transition-group: SolidJS components for applying animations when childr...