hunk.code_window: } from "../index.js";
   export function Portal(props: { mount?: Node; useShadow?: boolean; children: JSX.Element }) {
     if (globalThis._$HYDRATION && globalThis._$HYDRATION.asyncSSR) return;
     const { useShadow } = props,
       marker = document.createTextNode(""),
       mount = props.mount || document.body;
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:   const hydration = globalThis._$HYDRATION;
     if (hydration && hydration.asyncSSR) return;
  
hunk.file_path: packages/solid/src/dom/index.ts
hunk.type: replace
file: import { untrack } from "solid-js";
  
  export function map<T, U>(fn: (v: T) => U): (v: () => T) => () => U;
  export function map<T, U>(input: () => T, fn: (v: T) => U): () => U;
  export function map<T, U>(input: any, fn?: (v: T) => U): any {
    if (arguments.length === 1) {
      fn = input;
      return map;
    }
    return map(input);
  
    function map(input: () => T) {
      return () => {
        const value = input();
        return untrack(() => fn!(value));
      };
    }
  }
  