msavin / userCache

The one simple trick that can save you millions of database requests
MIT License
35 stars 6 forks source link

Cannot read property documents of undefined #11

Open wildhart opened 5 years ago

wildhart commented 5 years ago

Today I had an error TypeError: Cannot read property 'documents' of undefined at _getCache... from this code:

var collectionViews = isMeteor1_8 ? connectionData.collectionViews.get('users').documents.get(instance.userId) : connectionData.collectionViews.users.documents[instance.userId];

Using Meteor 1.8 and my PR https://github.com/msavin/userCache/pull/10