Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

observe() may lead to infinite regress #9

Open
waxlamp opened this issue Aug 3, 2017 · 0 comments
Open

observe() may lead to infinite regress #9

waxlamp opened this issue Aug 3, 2017 · 0 comments
Labels

Comments

@waxlamp
Copy link
Contributor

waxlamp commented Aug 3, 2017

Because the observe() function keeps a reference to the last state, it can overestimate when a change has occurred if an observe self-invokes in specific circumstances. When this happens, it is possible for the system to go into an infinite loop. The loop can be avoided by using a timeout to dispatch the offending action; however, it may also make sense to do so within this function, thus always forestalling the problem.

@waxlamp waxlamp added the bug label Aug 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant