Skip to content

Queries scoped to remote queries before load fail #6

@robmonie

Description

@robmonie

I have a remote query that i'm using as a base query for other queries to scope themselves to for things like further client side filtering and sorting. If I attach the scoped queries after the main query has finished loading, everything works fine. If however, I attach the scoped query before the baseQuery has been loaded, I get "Cannot call method 'forEach' of null" on line 568 of SC.RecordArray - https://github.com/sproutcore/sproutcore-datastore/blob/master/lib/system/record_array.js#L568

I have ways of working around this but it would be simpler if it didn't fail under this scenario.

cheers,
rob

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