Repository navigation
Commit db6de87
committed
fix(signals): use wrapper check instead of nullish coalescing in optimistic read()
The read() method used `?.value ??` which treats an overlay value of
`undefined` as missing and falls through to `source.get()`. This is
inconsistent with latest() and snapshot(), which correctly test the
wrapper object. An optimistic set to `undefined` would be silently
ignored on read, and a pending source could suspend instead of showing
the last overlay view.1 parent fa8d353 commit db6de87
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments