Fix undefined outros variable in transitions

This error occures in the method transition_out when trying to use a component from external dependancy and wrapping it inside a <div in:{...} out:{...}/>.

Error message: Cannot read property 'c' of undefined.
pull/5334/head
Abdelhalim Riache 5 years ago committed by GitHub
parent 84ac3a53d5
commit 941b7b5078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ export function transition_in(block, local?: 0 | 1) {
export function transition_out(block, local: 0 | 1, detach: 0 | 1, callback) {
if (block && block.o) {
if (outroing.has(block)) return;
if (outroing.has(block) || !outros) return;
outroing.add(block);
outros.c.push(() => {

Loading…
Cancel
Save