Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_getField misses the cache when required field is in an array #8

Open
wildhart opened this issue Jun 6, 2019 · 0 comments
Open

_getField misses the cache when required field is in an array #8

wildhart opened this issue Jun 6, 2019 · 0 comments

Comments

@wildhart
Copy link

wildhart commented Jun 6, 2019

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

// user = {emails: [{address: '1@example.com', 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 wildhart changed the title _getField _getField misses the cache when required field is in an array Jun 6, 2019
wildhart added a commit to wildhart/userCache that referenced this issue Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant