|
|
|
@ -1,6 +1,6 @@
|
|
|
|
/** @import { EffectNodes, TemplateNode } from '#client' */
|
|
|
|
/** @import { EffectNodes, TemplateNode } from '#client' */
|
|
|
|
import { HYDRATION_END, HYDRATION_START, HYDRATION_START_ELSE } from '../../../../constants.js';
|
|
|
|
import { HYDRATION_END, HYDRATION_START, HYDRATION_START_ELSE } from '../../../../constants.js';
|
|
|
|
import { PortalKey } from '../../../shared/svelte-portal.js';
|
|
|
|
import { PortalKey } from '../../../shared/portal.js';
|
|
|
|
import { block, remove_effect_dom, render_effect } from '../../reactivity/effects.js';
|
|
|
|
import { block, remove_effect_dom, render_effect } from '../../reactivity/effects.js';
|
|
|
|
import { hydrate_node, hydrating, set_hydrate_node, set_hydrating } from '../hydration.js';
|
|
|
|
import { hydrate_node, hydrating, set_hydrate_node, set_hydrating } from '../hydration.js';
|
|
|
|
import { get_next_sibling } from '../operations.js';
|
|
|
|
import { get_next_sibling } from '../operations.js';
|
|
|
|
@ -47,7 +47,6 @@ export function portal_outlet(node, id) {
|
|
|
|
* @returns {void}
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export function portal(target, content) {
|
|
|
|
export function portal(target, content) {
|
|
|
|
console.log('huh', target, content);
|
|
|
|
|
|
|
|
if (target == null) return;
|
|
|
|
if (target == null) return;
|
|
|
|
|
|
|
|
|
|
|
|
const is_dom_node = target instanceof Element;
|
|
|
|
const is_dom_node = target instanceof Element;
|