forked from profectus/Profectus
Bind uncached functions in processComputable
This commit is contained in:
parent
5400775fc1
commit
ff9fa0bf07
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue