(callback)
| 1266 | * @returns |
| 1267 | */ |
| 1268 | const watchEffect = (callback) => { |
| 1269 | currentSub = callback; |
| 1270 | // 收集依赖 |
| 1271 | callback(); |
| 1272 | currentSub = undefined; |
| 1273 | }; |
| 1274 | /** |
| 1275 | * @description 监听影响 ref |
| 1276 | * @param refVal |
no outgoing calls
no test coverage detected