(self: A)
| 1501 | * @since 4.0.0 |
| 1502 | */ |
| 1503 | export 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. |