pull/3201/head
Richard Harris 5 years ago
parent 8f959559d5
commit 7703140793

@ -239,11 +239,11 @@ function get_event_handler(
name: string,
snippet: string
): {
uses_context: boolean;
mutation: string;
contextual_dependencies: Set<string>;
snippet?: string;
} {
uses_context: boolean;
mutation: string;
contextual_dependencies: Set<string>;
snippet?: string;
} {
const value = get_value_from_dom(renderer, binding.parent, binding);
const store = binding.object[0] === '$' ? binding.object.slice(1) : null;

@ -95,7 +95,14 @@ export function create_ssr_component(fn) {
render: (props = {}, options = {}) => {
on_destroy = [];
const result: { head: string, css: Set<{ map: null, code: string }> } = { head: '', css: new Set() };
const result: {
head: string;
css: Set<{
map: null;
code: string;
}>;
} = { head: '', css: new Set() };
const html = $$render(result, props, {}, options);
run_all(on_destroy);

Loading…
Cancel
Save