meteor-reactive-method icon indicating copy to clipboard operation
meteor-reactive-method copied to clipboard

Change the way invocations are matched with their results to avoid issues.

Open deanrad opened this issue 10 years ago • 1 comments

git clone reactive-method
cd reactive-method
open http://localhost:3000/
meteor test-packages ./

Progress! I've added, and passed more test cases, and to my surprise a fix was under my nose all this time. The problem, as I originally stated it, is gone. Probably some room to tweak, but much, much better, and not vulnerable to infinite looping from what I saw :)

deanrad avatar Mar 21 '15 19:03 deanrad

Original problem statement:

screen shot 2015-03-23 at 9 45 42 am

The symptom is that the server-side call will be repeatedly made, possibly indefinitely.

The reason is that the enclosing function looks up the value to return by the arguments - if the arguments change in between invocations of the autorun, the invocation is treated as a new call.

deanrad avatar Mar 24 '15 01:03 deanrad