gerich-home / it-depends

Lightweight dependency tracking library for JavaScript
http://it-depends-js.github.io/
Other
1 stars 2 forks source link

Exceptions handling in computeds #23

Open gerich-home opened 8 years ago

gerich-home commented 8 years ago

Avoid repetitive calls to computed function if exception has been thrown. Rethrow exception that was called on the calculation. Allow recalculation when some of dependencies was changed.

gerich-home commented 8 years ago

Should we add onException callback? Should we have general onException callback / per-computed callback? How should onChange and onException callback interact?

gerich-home commented 8 years ago

changes from 3017326c339af1f3cfd663daad0663f9846855e4 describe the desired behavior