userCache icon indicating copy to clipboard operation
userCache copied to clipboard

_getField misses the cache when required field is in an array

Open wildhart opened this issue 6 years ago • 0 comments

the _getField() function misses the cache when the field required is an array, e.g:

// user = {emails: [{address: '[email protected]', verified: true}, {address: '[email protected]', verified: false}]}

// this will miss the cache because _getField() cannot find the 'address' property 'emails'
Meteor.user("emails.address") 

I'm already working on a PR to fix this and a few other minor issues, should be available in a day or so...

wildhart avatar Jun 06 '19 01:06 wildhart