hunk.code_window:   fallback: JSX.Element | ((err: any, reset: () => void) => JSX.Element);
     children: JSX.Element;
   }): Accessor<JSX.Element> {
     let err = undefined;
     if (sharedConfig!.context && sharedConfig!.load) {
  
hunk.labels: keep keep keep replace keep
hunk.after_edit:   let err = NoErrors;
  
hunk.file_path: packages/solid/src/render/flow.ts
hunk.type: replace
file: export type HydrationContext = { id: string; count: number; };
  
  type SharedConfig = {
    context?: HydrationContext;
    resources?: { [key: string]: any };
    load?: (id: string) => Promise<any> | undefined;
    gather?: (key: string) => void;
    registry?: Map<string, Element>;
    done?: boolean;
  };
  
  export const sharedConfig: SharedConfig = {};
  
  export function setHydrateContext(context?: HydrationContext): void {
    sharedConfig.context = context;
  }
  
  export function nextHydrateContext(): HydrationContext | undefined {
    return {
      ...sharedConfig.context,
      id: `${sharedConfig.context!.id}${sharedConfig.context!.count++}-`,
      count: 0
    };
  }
  