generated from autoblog/Seo
feat(content): await loadArticles before mount
This commit is contained in:
parent
3612a929d3
commit
f908d7da7e
1 changed files with 8 additions and 5 deletions
|
|
@ -2,9 +2,12 @@ import {StrictMode} from 'react';
|
|||
import {createRoot} from 'react-dom/client';
|
||||
import App from './App.tsx';
|
||||
import './index.css';
|
||||
import { loadArticles } from './data/articles';
|
||||
|
||||
loadArticles().finally(() => {
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue