Skip to content

keep computed values tracked as long as in use, see #452 - #489

Merged
mweststrate merged 32 commits into
masterfrom
pr452
Aug 30, 2016
Merged

mweststrate merged 32 commits into
masterfrom
pr452

Conversation

@mweststrate

Copy link
Copy Markdown
Member

This PR supersedes #452

cc: @asterius1

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.0%) to 91.964% when pulling b7fe739 on pr452 into 56c3ad2 on master.

Comment thread src/core/computedvalue.ts
return (`
WhyRun? computation '${this.name}':
* Running because: ${runReasonTexts[runReason]} ${(runReason === RunReason.NOT_RUNNING) && this.dependencyStaleCount > 0 ? "(a next run is scheduled)" : ""}
* Running because: ${isTracking ? "[active] the value of this computation is needed by a reaction" : this.isComputing ? "[get] The value of this computed was requested outside a reaction" : "[idle] not running at the moment"}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mweststrate: distinguish first access versus invalidating

@mweststrate

Copy link
Copy Markdown
Member Author

delayed release of this PR a bit, as with all the open PR's it is nicer to release a patch first, but the plan still is to release this later this week. A minor version should do I think

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.2%) to 95.831% when pulling 115bee4 on pr452 into 00c780b on master.

@mweststrate
mweststrate merged commit 115bee4 into master Aug 30, 2016
@mweststrate
mweststrate deleted the pr452 branch December 25, 2016 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants