Skip to content

Commit 51702ab

Browse files
committed
Utilize lai:collection-extensions to define hooks
1 parent bb85f4d commit 51702ab

File tree

11 files changed

+217
-895
lines changed

11 files changed

+217
-895
lines changed

packages/meteor-collection-hooks/client.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { Meteor } from 'meteor/meteor'
22
import { Tracker } from 'meteor/tracker'
33
import { CollectionHooks } from './collection-hooks.js'
44

5-
import './wrappers.js'
6-
75
CollectionHooks.getUserId = function getUserId () {
86
let userId
9-
7+
108
Tracker.nonreactive(() => {
119
userId = Meteor.userId && Meteor.userId()
1210
})

0 commit comments

Comments
 (0)