hunk.code_window:   }
     return marker;
   }
   export function Dynamic<T>(
     props: T & { component?: Component<T> | string | keyof JSX.IntrinsicElements }
   ): () => JSX.Element {
     const [p, others] = splitProps(props, ["component"]);
     return createMemo(() => {
       const comp = p.component,
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:   props: T & { children?: any,  component?: Component<T> | string | keyof JSX.IntrinsicElements }
  
hunk.file_path: packages/solid/src/dom/index.ts
hunk.type: replace
file: import { untrack } from "solid-js";
  
  export function tap<T>(fn: (v: T) => void): (v: () => T) => () => T;
  export function tap<T>(input: () => T, fn: (v: T) => void): () => T;
  export function tap<T>(input: any, fn?: any): any {
    if (arguments.length === 1) {
      fn = input;
      return tap;
    }
    return tap(input);
  
    function tap(input: () => T) {
      return () => {
        const value = input();
        untrack(() => fn(value));
        return value;
      };
    }
  }
  