undergroundwires
7ab16ecccb
Refactor watch sources for reliability
...
This commit changes `WatchSource` signatures into `Readonly<Ref>`s.
It provides two important benefits:
1. Eliminates the possibility of `undefined` states, that's result of
using `WatchSource`s. This previously required additional null checks.
By using `Readonly<Ref>`, the state handling becomes simpler and less
susceptible to null errors.
2. Optimizes performance by using references:
- Avoids the reactive layer of `computed` references when not needed.
- The `watch` syntax, such as `watch(() => ref.value)`, can introduce
side effects. For example, it does not account for `triggerRef` in
scenarios where the value remains unchanged, preventing the watcher
from running (vuejs/core#9579 ).
2023-11-11 13:55:21 +01:00
..
2023-11-06 21:55:43 +01:00
2023-08-07 13:16:39 +02:00
2023-08-07 13:16:39 +02:00
2022-01-25 08:37:03 +01:00
2023-08-29 16:30:00 +02:00
2023-09-16 16:11:41 +02:00
2023-11-01 13:39:39 +01:00
2023-08-29 16:30:00 +02:00
2022-10-29 20:03:06 +02:00
2023-08-24 20:01:53 +02:00
2023-11-06 21:55:43 +01:00
2022-01-25 08:37:03 +01:00
2022-09-25 23:25:43 +02:00
2022-09-25 23:25:43 +02:00
2023-11-06 21:55:43 +01:00
2023-11-06 21:55:43 +01:00
2023-09-16 16:11:41 +02:00
2022-03-08 18:03:19 +01:00
2022-10-29 20:03:06 +02:00
2023-08-24 20:01:53 +02:00
2022-01-31 17:22:34 +01:00
2023-08-29 16:30:00 +02:00
2023-09-16 16:11:41 +02:00
2023-09-24 20:34:47 +02:00
2022-03-11 09:56:50 +01:00
2023-08-29 16:30:00 +02:00
2023-08-07 13:16:39 +02:00
2023-11-10 13:16:53 +01:00
2023-09-01 18:14:25 +02:00
2022-01-25 08:37:03 +01:00
2022-10-11 20:42:38 +02:00
2023-09-16 16:11:41 +02:00
2022-10-11 20:42:38 +02:00
2023-08-29 16:30:00 +02:00
2023-10-31 13:57:57 +01:00
2023-08-16 15:09:26 +02:00
2023-08-25 00:32:01 +02:00
2023-09-16 16:11:41 +02:00
2022-01-25 08:37:03 +01:00
2023-09-16 16:11:41 +02:00
2023-09-16 16:11:41 +02:00
2022-01-31 17:22:34 +01:00
2023-09-16 16:11:41 +02:00
2022-10-29 20:03:06 +02:00
2022-01-31 17:22:34 +01:00
2022-01-25 08:37:03 +01:00
2022-01-25 08:37:03 +01:00
2023-09-25 14:21:29 +02:00
2022-10-29 20:03:06 +02:00
2023-08-29 16:30:00 +02:00
2023-08-29 16:30:00 +02:00
2022-03-11 09:56:50 +01:00
2023-09-09 22:26:21 +02:00
2023-09-24 20:34:47 +02:00
2023-09-24 20:34:47 +02:00
2022-01-25 08:37:03 +01:00
2023-08-29 16:30:00 +02:00
2022-01-31 17:22:34 +01:00
2022-01-25 08:37:03 +01:00
2022-01-25 08:37:03 +01:00
2022-01-25 08:37:03 +01:00
2023-08-29 16:30:00 +02:00
2023-08-01 17:50:36 +02:00
2023-09-24 20:34:47 +02:00
2023-09-25 14:21:29 +02:00
2023-08-29 16:30:00 +02:00
2023-08-29 16:30:00 +02:00
2023-08-25 14:31:30 +02:00
2022-01-25 08:37:03 +01:00
2022-01-31 17:22:34 +01:00
2022-09-25 23:25:43 +02:00
2022-01-31 17:22:34 +01:00
2022-01-25 08:37:03 +01:00
2022-09-25 23:25:43 +02:00
2022-01-25 08:37:03 +01:00
2023-09-16 16:11:41 +02:00
2022-10-29 20:03:06 +02:00
2023-09-16 16:11:41 +02:00
2023-09-16 16:11:41 +02:00
2023-09-16 16:11:41 +02:00
2023-09-24 20:34:47 +02:00
2023-08-25 14:31:30 +02:00
2023-08-29 16:30:00 +02:00
2023-10-16 02:06:19 +02:00
2023-09-09 22:26:21 +02:00
2023-09-24 20:34:47 +02:00
2023-09-24 20:34:47 +02:00
2023-09-24 20:34:47 +02:00
2023-09-24 20:34:47 +02:00
2023-09-25 14:21:29 +02:00
2023-09-09 22:26:21 +02:00
2023-09-24 20:34:47 +02:00
2023-09-09 22:26:21 +02:00
2023-08-25 00:32:01 +02:00
2023-09-24 20:34:47 +02:00
2023-11-06 21:55:43 +01:00
2023-11-10 13:16:53 +01:00
2023-11-06 21:55:43 +01:00
2023-11-11 13:55:21 +01:00
2023-11-11 13:55:21 +01:00
2023-08-25 00:32:01 +02:00
2023-11-10 13:16:53 +01:00
2023-10-11 18:38:19 +02:00
2023-11-10 13:16:53 +01:00
2022-02-26 17:15:30 +01:00
2023-09-01 18:14:25 +02:00
2023-08-29 16:30:00 +02:00