Hyperlinkv0.8.0-beta.28

Layer

Layer.forkMemoMapUnsafeconsteffect/Layer.ts:497
(parent: MemoMap): MemoMap

Constructs a child MemoMap synchronously, allowing it to reuse layers already memoized in the parent while isolating any new layer allocations to the child map.

When to use

Use to synchronously fork a memo map for manual layer building when child builds should see parent memoized layers without writing newly built layers back to the parent.

Source effect/Layer.ts:4971 lines
export const forkMemoMapUnsafe = (parent: MemoMap): MemoMap => new MemoMapImpl(parent)
Referenced by 2 symbols