[fix] check for $$ on parent_component in component init

pull/7849/head
Sohaib Alam 4 years ago
parent 24aff3032d
commit e21a98c666

@ -124,7 +124,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
on_disconnect: [],
before_update: [],
after_update: [],
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
context: new Map(options.context || (parent_component && parent_component.$$ ? parent_component.$$.context : [])),
// everything else
callbacks: blank_object(),

Loading…
Cancel
Save