( getterOrOptions: any, debugOptions?: any, )
| 2 | import { getCurrentInstance, isInSSRComponentSetup } from './component' |
| 3 | |
| 4 | export const computed: typeof _computed = ( |
| 5 | getterOrOptions: any, |
| 6 | debugOptions?: any, |
| 7 | ) => { |
| 8 | // @ts-expect-error |
| 9 | const c = _computed(getterOrOptions, debugOptions, isInSSRComponentSetup) |
| 10 | if (__DEV__) { |
| 11 | const i = getCurrentInstance() |
| 12 | if (i && i.appContext.config.warnRecursiveComputed) { |
| 13 | ;(c as unknown as ComputedRefImpl<any>)._warnRecursive = true |
| 14 | } |
| 15 | } |
| 16 | return c as any |
| 17 | } |