Fix processed JSXFunctions not being considered coercable components

This commit is contained in:
thepaperpilot 2022-07-07 23:16:11 -05:00
parent ff9714546f
commit a701168ab1

View file

@ -39,6 +39,8 @@ export function processComputable<T, S extends keyof ComputableKeysOf<T>>(
obj[key] = computed(computable.bind(obj)); obj[key] = computed(computable.bind(obj));
} else if (isFunction(computable)) { } else if (isFunction(computable)) {
obj[key] = computable.bind(obj); obj[key] = computable.bind(obj);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(obj[key] as any)[DoNotCache] = true;
} }
} }