Code triggering an issue with Effect.promise and pipeline functions

Not sure if I need to open an issue or not:

This is the code that trigger this:

await Effect.promise(() =>
  mutation.mutateAsync({
    // my params from my form
  }),
).pipe(
  Effect.andThen((x) => x), // because my promise mutation.mutate returns an Either,
  Effect.andThen(Effect.tapError(Console.error)), // I used this, but it was Effect.tapError(Console.error) (without Effect.andThen)
  Effect.andThen(afterSubmit),
  Effect.runPromise,
);
Arc_2024-05-30_17.17.47.png
Was this page helpful?