( prop: K, fallback?: Details[K] )
| 79 | * of the doc details |
| 80 | */ |
| 81 | export function useDocDetails<K extends keyof Details>( |
| 82 | prop: K, |
| 83 | fallback?: Details[K] |
| 84 | ) { |
| 85 | return useDoc((state) => state.details[prop] || fallback) as Details[K]; |
| 86 | } |
| 87 | |
| 88 | // For E2E tests, let's put a __set_text function in the global scope |
| 89 | // that will set the text of the doc |
no outgoing calls
no test coverage detected