(getter: () => Ref<T>)
| 572 | }) |
| 573 | |
| 574 | function writableComputedRef<T> (getter: () => Ref<T>) { |
| 575 | return computed({ |
| 576 | get () { |
| 577 | return getter()?.value |
| 578 | }, |
| 579 | set (value) { |
| 580 | const ref = getter() |
| 581 | if (ref) { |
| 582 | ref.value = value |
| 583 | } |
| 584 | }, |
| 585 | }) |
| 586 | } |
| 587 | |
| 588 | function _isAutoKeyNeeded (keyOrFetcher: string | MaybeRefOrGetter<string> | (() => any), fetcher: () => any): boolean { |
| 589 | // string key |
no outgoing calls
no test coverage detected
searching dependent graphs…