meteor-reactive-method
meteor-reactive-method copied to clipboard
Change the way invocations are matched with their results to avoid issues.
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 :)
Original problem statement:

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.