({ onFirstRender }: { onFirstRender: () => void })
| 42 | const focusLog = debug("wave:focus"); |
| 43 | |
| 44 | const App = ({ onFirstRender }: { onFirstRender: () => void }) => { |
| 45 | const tabId = useAtomValue(atoms.staticTabId); |
| 46 | const waveEnvRef = useRef(makeWaveEnvImpl()); |
| 47 | useEffect(() => { |
| 48 | onFirstRender(); |
| 49 | }, []); |
| 50 | return ( |
| 51 | <Provider store={globalStore}> |
| 52 | <WaveEnvContext.Provider value={waveEnvRef.current}> |
| 53 | <TabModelContext.Provider value={getTabModelByTabId(tabId)}> |
| 54 | <AppInner /> |
| 55 | </TabModelContext.Provider> |
| 56 | </WaveEnvContext.Provider> |
| 57 | </Provider> |
| 58 | ); |
| 59 | }; |
| 60 | |
| 61 | function isContentEditableBeingEdited(): boolean { |
| 62 | const activeElement = document.activeElement; |
nothing calls this directly
no test coverage detected