Merge pull request #2057 from sveltejs/gh-2056

Ensure derive behaves consistently.
pull/2063/head
Rich Harris 6 years ago committed by GitHub
commit e525b83d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,7 +66,7 @@ export function derive(stores, fn) {
const single = !Array.isArray(stores);
if (single) stores = [stores];
const auto = fn.length === 1;
const auto = fn.length < 2;
let value = {};
return readable(set => {

Loading…
Cancel
Save