Bind uncached functions in processComputable

This commit is contained in:
thepaperpilot 2022-06-28 09:51:52 -05:00
parent 5400775fc1
commit ff9fa0bf07

View file

@ -37,6 +37,8 @@ export function processComputable<T, S extends keyof ComputableKeysOf<T>>(
// 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);
}
}