From ff9fa0bf0769492b2224c4dc215360329ff7f67f Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 28 Jun 2022 09:51:52 -0500 Subject: [PATCH] Bind uncached functions in processComputable --- src/util/computed.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/computed.ts b/src/util/computed.ts index d3f3119..d9b3458 100644 --- a/src/util/computed.ts +++ b/src/util/computed.ts @@ -37,6 +37,8 @@ export function processComputable>( // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore obj[key] = computed(computable.bind(obj)); + } else if (isFunction(computable)) { + obj[key] = computable.bind(obj); } }