marshallswain / feathers-pinia

Connect your Feathers API to the elegant data store for Vue
52 stars 22 forks source link

find query ignored if results return empty #125

Closed pg-ahenry closed 1 year ago

pg-ahenry commented 1 year ago

When using useFind() with { paginateOn: 'server' } and a query is performed via find() (descrtructured or service().find()) that returns empty results, data doesn't update. When this occurs, the find() query is ignored and will revert to displaying whatever the previous query results (essentially ignoring the query all together). This can be observed via pinia devtools. (queriedAt for the most recent pagination doesn't even update).

This also can be seen indirectly with { paginateOn: 'hybrid' } as well.