StepFunctionRegistry layer is created twice due to overlapping layers in the composition

hi, can anyone tell me why my StepFunctionRegistry layer gets created twice, i have created it using Live = Layer.effect(..., Effect.gen(function*() { ... })) ?
export const StepFunctionRegistryLayer = StepFunctionRegistry.Live;
const standaloneServicesLayer = Layer.mergeAll(
  JobStore.Memory,
  CursorStore.Memory,
  JobMessageQueue.Memory,
  StepFunctionRegistryLayer,
);

const JobGeneratorLayer = Layer.provide(
  JobGenerator.Live,
  standaloneServicesLayer,
);

export const JobServiceLayer = Layer.provide(
  JobService.Memory,
  Layer.merge(JobGeneratorLayer, standaloneServicesLayer),
);
Was this page helpful?