From d1fa45b3675c7c58c0fc0dd39ddbbbe5f123a775 Mon Sep 17 00:00:00 2001 From: Marshall Thompson Date: Tue, 2 Apr 2019 10:16:51 -0600 Subject: [PATCH] Fix bug with makeFindMixin watcher If you watched a single param in the watcher, it would pass the single param to the `find` action instead of passing all props. This change makes sure no params are passed, which allows the `find` mixin to perform the proper params-picking logic, internally. --- src/make-find-mixin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/make-find-mixin.ts b/src/make-find-mixin.ts index edb1b9a2..daf1bc57 100644 --- a/src/make-find-mixin.ts +++ b/src/make-find-mixin.ts @@ -139,7 +139,9 @@ export default function makeFindMixin(options) { prop = prop.replace(PARAMS, FETCH_PARAMS) } } - this.$watch(prop, this[FIND_ACTION]) + this.$watch(prop, function() { + return this[FIND_ACTION]() + }) }) return this[FIND_ACTION]()