MCPcopy Create free account
hub / github.com/Effect-TS/effect / autoDispose

Function autoDispose

packages/effect/src/unstable/reactivity/Atom.ts:1503–1507  ·  view source on GitHub ↗
(self: A)

Source from the content-addressed store, hash-verified

1501 * @since 4.0.0
1502 */
1503export const autoDispose = <A extends Atom<any>>(self: A): A =>
1504 Object.assign(Object.create(Object.getPrototypeOf(self)), {
1505 ...self,
1506 keepAlive: false
1507 })
1508
1509/**
1510 * Sets whether an atom should be lazy.

Callers 1

Atom.tsFile · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected