()
| 68 | } |
| 69 | |
| 70 | const computed = () => { |
| 71 | // Check if the value needs updating before returning it. |
| 72 | producerUpdateValueVersion(node); |
| 73 | |
| 74 | // Record that someone looked at this signal. |
| 75 | producerAccessed(node); |
| 76 | |
| 77 | if (node.value === ERRORED) { |
| 78 | throw node.error; |
| 79 | } |
| 80 | |
| 81 | return node.value; |
| 82 | }; |
| 83 | |
| 84 | (computed as ComputedGetter<T>)[SIGNAL] = node; |
| 85 | if (typeof ngDevMode !== 'undefined' && ngDevMode) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…