Skip to content

return a promise for findAll

Compare
Choose a tag to compare
@jondayton jondayton released this 23 Jul 23:45
5fa2a95

This contains a breaking change for findAll, one of the most commonly-used methods in the past. findAll returns a promise if it executes a fetch, but an array if it uses the cache. this is fine if fromServer is explicit, but otherwise the return object is ambiguous.