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

Fix Cannot read property 'length' of undefined #162

Merged
merged 2 commits into from
Feb 22, 2017

Conversation

theobat
Copy link
Contributor

@theobat theobat commented Feb 21, 2017

@mattkrick, @dustinfarris,

After further investigations with @slaivyn we came to the following conclusions and PR:

When you have a query such as getCommentsByPostId supposed to return a List given an argument (id), if you query first with an argument and then with another one you'll have the error #156.

The reason is cashay searches for existing data in the same namespace :
denormalizeStore
maybeLiveQuery
getFieldState

The last one returns subState = fieldState

@coveralls
Copy link

coveralls commented Feb 21, 2017

Coverage Status

Coverage increased (+0.09%) to 76.4% when pulling c6f0492 on theobat:master into 58c48e3 on mattkrick:master.

@mattkrick
Copy link
Owner

digging in now...

@mattkrick mattkrick merged commit 53d8f17 into mattkrick:master Feb 22, 2017
@mattkrick
Copy link
Owner

@theobat great find! live in 0.22.5

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

Successfully merging this pull request may close these issues.

3 participants