Commit 6c356a8
committed
fix(reactivity): prevent unnecessary computed recalculations in dev mode
Fix computed properties being recalculated unnecessarily in development
mode when unrelated reactive values change, while production mode works
correctly. This issue was caused by version lag in dependency tracking
during development builds.
The fix introduces a conservative dependency check that:
- Only considers dependencies truly dirty when version diff > 1
- Syncs link versions to prevent accumulating lag
- Maintains consistency between dev and production behavior
- Preserves all debugging functionality
Closes issue with computed performance regression in development mode.1 parent 75220c7 commit 6c356a8
1 file changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| |||
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
381 | 413 | | |
382 | 414 | | |
383 | 415 | | |
| |||
0 commit comments