( hook: Function, instance: ComponentInternalInstance, type: LifecycleHooks, )
| 833 | } |
| 834 | |
| 835 | function callHook( |
| 836 | hook: Function, |
| 837 | instance: ComponentInternalInstance, |
| 838 | type: LifecycleHooks, |
| 839 | ) { |
| 840 | callWithAsyncErrorHandling( |
| 841 | isArray(hook) |
| 842 | ? hook.map(h => h.bind(instance.proxy!)) |
| 843 | : hook.bind(instance.proxy!), |
| 844 | instance, |
| 845 | type, |
| 846 | ) |
| 847 | } |
| 848 | |
| 849 | export function createWatcher( |
| 850 | raw: ComponentWatchOptionItem, |
no test coverage detected