Skip to content

Commit

Permalink
chore: Sync index file with what is generated by Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov committed Oct 14, 2024
1 parent f0719ec commit afed041
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/frontend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ function App() {
</AuthProvider>;
}

createRoot(document.getElementById('outlet')!).render(createElement(App));
const outlet = document.getElementById('outlet')!;
let root = (outlet as any)._root ?? createRoot(outlet);
(outlet as any)._root = root;
root.render(createElement(App));

0 comments on commit afed041

Please sign in to comment.