(
ownerState: NodeState,
owned: Readonly<Solid.Computation[]>,
prevOwned: Readonly<Solid.Computation[]>,
)
| 194 | } |
| 195 | |
| 196 | export function logOwned( |
| 197 | ownerState: NodeState, |
| 198 | owned: Readonly<Solid.Computation[]>, |
| 199 | prevOwned: Readonly<Solid.Computation[]>, |
| 200 | ): void { |
| 201 | console.groupCollapsed( |
| 202 | `Owned by the %c${ownerState.name}%c ${ownerState.typeName}:`, |
| 203 | STYLES.ownerName, |
| 204 | '', |
| 205 | owned.length, |
| 206 | ) |
| 207 | |
| 208 | logOwnersDiff(prevOwned, owned, 'stack', owner => { |
| 209 | const sources = owner.sources ? array.deduped(owner.sources) : [] |
| 210 | const usesPrev = !!owner.fn.length |
| 211 | const usesValue = usesPrev || isSolidMemo(owner) |
| 212 | logComputationDetails({ |
| 213 | owner: ownerState, |
| 214 | owned: owner.owned ?? [], |
| 215 | sources, |
| 216 | prev: UNUSED, |
| 217 | value: usesValue ? owner.value : UNUSED, |
| 218 | causedBy: null, |
| 219 | }) |
| 220 | }) |
| 221 | |
| 222 | console.groupEnd() |
| 223 | } |
| 224 | |
| 225 | export function logSignalsInitialValues(signals: Solid.Signal[]): void { |
| 226 | console.groupCollapsed('Signals initial values:') |
no test coverage detected
searching dependent graphs…