meteor-utilities / react-list-container

Smart containers for React & Meteor
32 stars 8 forks source link

Document returns first item from collection when selector object is empty #10

Open MHerszak opened 8 years ago

MHerszak commented 8 years ago

Hi,

not sure if this is intended but when a selector object is empty the first document from a collection will be returned. That can mess up ones requests if a empty document is required/expected. Should this be changed?

SachaG commented 8 years ago

Is this with ListContainer or DocumentContainer?

MHerszak commented 8 years ago

It happened using DocumentContainer.

SachaG commented 8 years ago

Hmm ok, I'm not sure what the expected/correct behavior would be here so I'll have to take a look when I can.