remove ssr slots from the docs

pull/6032/head
tanhauhau 5 years ago
parent 6d82512e82
commit 3324b4f2aa

@ -1093,7 +1093,6 @@ You can call the `.render()` with the following parameters:
The `options` object takes in the following properties: The `options` object takes in the following properties:
| key | default | description | | key | default | description |
| --- | --- | --- | | --- | --- | --- |
| `slots` | `{}` | slots to supply to the component
| `context` | `new Map()` | A `Map` of context key-value pairs to supply to the component | `context` | `new Map()` | A `Map` of context key-value pairs to supply to the component
```js ```js
@ -1102,7 +1101,6 @@ const { head, html, css } = App.render(
{ answer: 42 }, { answer: 42 },
// options // options
{ {
slots: { 'slot-a': (lets) => 'hello world' },
context: new Map([['context-key', 'context-value']]), context: new Map([['context-key', 'context-value']]),
} }
); );

@ -97,7 +97,7 @@ export function create_ssr_component(fn) {
} }
return { return {
render: (props = {}, { slots = {}, context = new Map() } = {}) => { render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {
on_destroy = []; on_destroy = [];
const result: { const result: {
@ -109,7 +109,7 @@ export function create_ssr_component(fn) {
}>; }>;
} = { title: '', head: '', css: new Set() }; } = { title: '', head: '', css: new Set() };
const html = $$render(result, props, {}, slots, context); const html = $$render(result, props, {}, $$slots, context);
run_all(on_destroy); run_all(on_destroy);

Loading…
Cancel
Save