(
layer: Layer<ROut, E, RIn>,
scope: Scope.Scope
)
| 432 | readonly map = new Map<Layer<any, any, any>, MemoMapEntry>() |
| 433 | |
| 434 | get<RIn, E, ROut>( |
| 435 | layer: Layer<ROut, E, RIn>, |
| 436 | scope: Scope.Scope |
| 437 | ): Effect<Context.Context<ROut>, E, RIn> | undefined { |
| 438 | const local = this.map.get(layer) |
| 439 | if (local) { |
| 440 | return memoMapReuse(local, scope) |
| 441 | } |
| 442 | return this.parent?.get(layer, scope) |
| 443 | } |
| 444 | |
| 445 | getOrElseMemoize<RIn, E, ROut>( |
| 446 | layer: Layer<ROut, E, RIn>, |
no test coverage detected