Skip to content

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

Open

Description

@wildhart

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

// user = {emails: [{address: '1@example.com', verified: true}, {address: '2@example.com', 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...

Activity

  1. changed the title [-]_getField[/-] [+]_getField misses the cache when required field is in an array[/+] on Jun 6, 2019
  2. added a commit that references this issue on Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions