forked from katiejiang/1n-werewolf
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
code improvementwon't necessarily enhance the functionality, but will make for better codewon't necessarily enhance the functionality, but will make for better codequestionFurther information is requestedFurther information is requested
Description
MeteorSubs doesn't seem to work when called from inside a Tracker.autorun (trackGameState): instead, it calls the server's publish in an infinite loop.
Fortunately Meteor's native subscribe should do what we went - at least inside the Tracker: it doesn't republish the same subscription, and unsubscribes when the state changes again (ie. we leave the endGame view).
We work round this in history.js#L68, but it would be good to understand what's wrong or else report as a MeteorSubs bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
code improvementwon't necessarily enhance the functionality, but will make for better codewon't necessarily enhance the functionality, but will make for better codequestionFurther information is requestedFurther information is requested