put callbacks with the other discardable items

pull/2249/head
Richard Harris 6 years ago
parent 138e5b6709
commit 326db41aff

@ -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