It would be really cool to provide more information when we track a signal like the previous state :
useTask$(({ track }) => {
const { previous, next } = track(list);
if (previous === undefined) animateEntry();
if (next.length > previous.length) animateUp();
if (next.length < previous.length) animateDown();
return ({ previous, next }) => {
if (next === undefined) animateLeave();
}
})