* Render a component. Throws if any of the children are performing asynchronous work. * * @template {Record } Props * @param {Component } component * @param {{ props?: Omit ; context?: Map ; idPrefix?: string }} options * @returns {A
(component, options)
| 633 | * @returns {AccumulatedContent} |
| 634 | */ |
| 635 | static #render(component, options) { |
| 636 | var previous_context = ssr_context; |
| 637 | try { |
| 638 | const renderer = Renderer.#open_render('sync', component, options); |
| 639 | |
| 640 | const content = renderer.#collect_content(); |
| 641 | return Renderer.#close_render(content, renderer); |
| 642 | } finally { |
| 643 | abort(); |
| 644 | set_ssr_context(previous_context); |
| 645 | } |
| 646 | } |
| 647 | |
| 648 | /** |
| 649 | * Render a component. |
no test coverage detected