Closed
Description
related to #78.
For example:
# assume the active scope has a client side filter method
Todo.all.active.count # request just the count but not the whole scope
Todo.all.each ... # fetch the parent scope
... # later after parent scope has finished loading
Todo.all.active.each ... # this unnecessarily loads active from server
The problem all.active
collection is created first, and linked to all
(the parent)
but parent does not have loaded collection yet, so we skip filtering.
perhaps calling sync_collection_with_parent
in the all
method could fix it easily?