Closed jeffmagill closed 4 years ago
If its relevant, here are the omitted methods
collect(t = {}) {
if(t.children && t.children.length) {
let results = [...t.children].flatMap(this.collect);
return results;
}
else {
return [ t ];
}
}
drop(items) {
items.forEach( (el, index) => setTimeout( () => {
if(index % 2 == 0) {
el.classList.toggle('dropping--right');
}
el.classList.toggle('dropping')
}, Math.random()*333));
}
Aaaand I'm a dummy because I had the prop as enter
when it should be entry
. Once again, I find the answer myself after publicly posting my question.
I've got a custom link component that uses a custom animation.
onExit
is called and animates the old page content just fine. However, the new page content shows up immediately and theonEnter
callback is never fired. What am I missing? How am I supposed to animate the new page in? How do I get theonEnter
callback to fire?My attempt at including an image of the problem: Image