|
1 | | -// import { ensureMaterialized, vnode_isElementVNode, vnode_isVNode } from '../client/vnode'; |
2 | | -// import type { Container } from '../shared/types'; |
3 | | -// import { SignalImpl } from './impl/signal-impl'; |
4 | | -// import { WrappedSignalImpl } from './impl/wrapped-signal-impl'; |
5 | | -// import { StoreHandler, getStoreHandler } from './impl/store'; |
6 | | -// import { AsyncComputedSignalImpl } from './impl/async-computed-signal-impl'; |
7 | | -// import { _PROPS_HANDLER } from '../shared/utils/constants'; |
8 | | -import { |
9 | | - EffectSubscriptionProp, |
10 | | - _EFFECT_BACK_REF, |
11 | | - type Consumer, |
12 | | - type EffectProperty, |
13 | | - type EffectSubscription, |
14 | | -} from './types'; |
| 1 | +import { ensureMaterialized, vnode_isElementVNode, vnode_isVNode } from '../client/vnode'; |
| 2 | +import type { Container } from '../shared/types'; |
| 3 | +import { SignalImpl } from './impl/signal-impl'; |
| 4 | +import { WrappedSignalImpl } from './impl/wrapped-signal-impl'; |
| 5 | +import { StoreHandler, getStoreHandler } from './impl/store'; |
| 6 | +import { AsyncComputedSignalImpl } from './impl/async-computed-signal-impl'; |
| 7 | +import { _PROPS_HANDLER } from '../shared/utils/constants'; |
| 8 | +import { BackRef, _EFFECT_BACK_REF } from './backref'; |
| 9 | +import { EffectSubscriptionProp, type Consumer, type EffectSubscription } from './types'; |
15 | 10 | import { isPropsProxy, type PropsProxyHandler } from '../shared/jsx/props-proxy'; |
16 | 11 |
|
17 | | -/** Class for back reference to the EffectSubscription */ |
18 | | -export abstract class BackRef { |
19 | | - [_EFFECT_BACK_REF]: Map<EffectProperty | string, EffectSubscription> | undefined = undefined; |
20 | | -} |
21 | | - |
22 | 12 | export function clearAllEffects(container: Container, consumer: Consumer): void { |
23 | 13 | if (vnode_isVNode(consumer) && vnode_isElementVNode(consumer)) { |
24 | 14 | ensureMaterialized(consumer); |
|
0 commit comments