belisarius222 / meteor-event-horizon Goto Github PK
View Code? Open in Web Editor NEWreactive event system for Meteor
reactive event system for Meteor
It works on the loggedIn event.
EventHorizon.fireWhenTrue('loggedIn',function(){
return Meteor.userId() !== null;
});
EventHorizon.on('loggedIn',function(){
console.log('The user just logged in.');
});
But when I changed it to
EventHorizon.fireWhenTrue('loggedOut',function(){
return Meteor.userId() === null;
});
EventHorizon.on('loggedOut',function(){
console.log('The user just logged out.');
});
it fails to fire the event (login and logout multiple times). BTW, it is easy to check that
Meteor.userId() === null
in the console.
I get this error in console when loading my application:
Uncaught ReferenceError: Deps is not defined
which points to if not Deps.isolate?
in your coffeescript file. Is this an issue with latest meteor? I had it working untill today.
Possible to pass values when you fire a manual event?
Wonderful package @belisarius222!! I particularly find good use with the loggedIn event. I had to previously write an adequately long check.
Is it possible to have this loggedIn/loggedOut event on the server?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.