If a query provider returns an error, the error is swallowed silently and an empty result set is returned.
The problem stems from Store._fetchAndCompileQueryData, which accepts a callback with only one parameter.
The parameter is supposed to indicate whether the result is a single item. If the query returns an error, the error is also passed to this parameter.
This method is called by Store.middleware(), but I'm not sure how to report errors through the middleware chain.
If a query provider returns an error, the error is swallowed silently and an empty result set is returned.
The problem stems from
Store._fetchAndCompileQueryData
, which accepts a callback with only one parameter.The parameter is supposed to indicate whether the result is a single item. If the query returns an error, the error is also passed to this parameter.
This method is called by
Store.middleware()
, but I'm not sure how to report errors through the middleware chain.