Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 905 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 905 Bytes

Utils for integrating BaoBab with Meteor

build status

NPM

Example

import Meteor from 'meteor';
import { cursorListener } from 'baobab-meteor-utils';

Meteor.startup(() => {
  cursorListener(window.Users.find(), cursor);
});
import Meteor from 'meteor';
import { cursorObjectListener } from 'baobab-meteor-utils';

Meteor.startup(() => {
  cursorObjectListener(() => window.Meteor.user(), cursor);
});
import Meteor from 'meteor';
import { autorunBinding } from 'baobab-meteor-utils';

Meteor.startup(() => {
  autorunBinding(() => window.Meteor.user(), cursor);
});