(ref: Reference<any>)
| 1160 | const defaultValueCacheKey = "~effect/Context/defaultValue" as const |
| 1161 | |
| 1162 | const getDefaultValue = (ref: Reference<any>) => { |
| 1163 | if (defaultValueCacheKey in ref) { |
| 1164 | return ref[defaultValueCacheKey] as any |
| 1165 | } |
| 1166 | return (ref as any)[defaultValueCacheKey] = ref.defaultValue() |
| 1167 | } |
| 1168 | |
| 1169 | /** |
| 1170 | * Shares the runtime default with reference lookups without changing |
no outgoing calls
no test coverage detected