File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class Computed<T = any> implements IComputed {
3838 }
3939 const activeTrackId = System . activeTrackId ;
4040 if ( activeTrackId !== 0 && this . subsTail ?. trackId !== activeTrackId ) {
41- Dependency . linkSubscriber ( this , System . activeSub ! ) ;
41+ Dependency . link ( this , System . activeSub ! ) ;
4242 }
4343 return this . cachedValue ! ;
4444 }
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ export class Effect<T = any> implements IEffect {
2525 ) {
2626 const activeTrackId = System . activeTrackId ;
2727 if ( activeTrackId !== 0 ) {
28- Dependency . linkSubscriber ( this , System . activeSub ! ) ;
28+ Dependency . link ( this , System . activeSub ! ) ;
2929 return ;
3030 }
3131 const activeEffectScopeTrackId = System . activeEffectScopeTrackId ;
3232 if ( activeEffectScopeTrackId !== 0 ) {
33- Dependency . linkSubscriber ( this , System . activeEffectScope ! ) ;
33+ Dependency . link ( this , System . activeEffectScope ! ) ;
3434 }
3535 }
3636
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class Signal<T = any> implements Dependency {
2323 get ( ) {
2424 const activeTrackId = System . activeTrackId ;
2525 if ( activeTrackId !== 0 && this . subsTail ?. trackId !== activeTrackId ) {
26- Dependency . linkSubscriber ( this , System . activeSub ! ) ;
26+ Dependency . link ( this , System . activeSub ! ) ;
2727 }
2828 return this . currentValue ! ;
2929 }
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export namespace Dependency {
8282
8383 const system = System ;
8484
85- export function linkSubscriber ( dep : Link [ 'dep' ] , sub : Link [ 'sub' ] ) {
85+ export function link ( dep : Link [ 'dep' ] , sub : Link [ 'sub' ] ) {
8686 const depsTail = sub . depsTail ;
8787 const old = depsTail !== undefined
8888 ? depsTail . nextDep
You can’t perform that action at this time.
0 commit comments