Skip to content

Commit

Permalink
fixup! feat(orchestration): map flows anywhere in context
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Sep 5, 2024
1 parent 2a92508 commit acb2755
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/orchestration/src/facade.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ export const makeOrchestrationFacade = ({
(...args) => orcFns[name](...args),
]),
);
const mapFlow = guestFn => mappedFlows.get(guestFn) || guestFn;

const mappedContext = deepMapObject(hostCtx, mapFlow);
const mappedContext = deepMapObject(
hostCtx,
val => mappedFlows.get(val) || val,
);

const orcFns = /** @type {{ [N in keyof GFM]: HostForGuest<GFM[N]> }} */ (
Object.fromEntries(
Expand Down

0 comments on commit acb2755

Please sign in to comment.