File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @flexsurfer/reflex" ,
3- "version" : " 0.1.16 " ,
3+ "version" : " 0.1.17 " ,
44 "license" : " MIT" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -191,6 +191,10 @@ export class Reaction<T> {
191191 getId ( ) : Id {
192192 return this . id
193193 }
194+
195+ getVersion ( ) : number {
196+ return this . version
197+ }
194198
195199 getSubVector ( ) : SubVector | undefined {
196200 return this . subVector
@@ -200,18 +204,18 @@ export class Reaction<T> {
200204 this . subVector = subVector
201205 }
202206
203- private get isAlive ( ) : boolean {
204- return this . hasWatchers || this . hasDependents
205- }
206-
207- private get hasWatchers ( ) : boolean {
207+ get hasWatchers ( ) : boolean {
208208 return this . watchers . length > 0
209209 }
210210
211- private get hasDependents ( ) : boolean {
211+ get hasDependents ( ) : boolean {
212212 return this . dependents . size > 0
213213 }
214214
215+ get isAlive ( ) : boolean {
216+ return this . hasWatchers || this . hasDependents
217+ }
218+
215219 get isDirty ( ) : boolean {
216220 return this . dirty
217221 }
You can’t perform that action at this time.
0 commit comments