put callbacks with the other discardable items

pull/7738/head
Richard Harris 7 years ago
parent ab20acd479
commit 1e55b97bed

@ -72,13 +72,13 @@ export function create_ssr_component(fn) {
const parent_component = current_component;
const $$ = {
on_destroy,
context: new Map(parent_component ? parent_component.$$.context : []),
// these will be immediately discarded
on_mount: [],
before_render: [],
after_render: [],
on_destroy,
context: new Map(parent_component ? parent_component.$$.context : []),
callbacks: blankObject()
};

Loading…
Cancel
Save