mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
frontend: trigger sync when entering the page
This commit is contained in:
parent
b8ce53290d
commit
9c525e5d18
|
@ -7,6 +7,7 @@ import { ThemeProvider } from '@mui/material/styles';
|
|||
import CssBaseline from '@mui/material/CssBaseline';
|
||||
import theme from '../src/theme';
|
||||
import '../styles/globals.css';
|
||||
import {triggerSync} from "../api/bbgo";
|
||||
|
||||
export default function MyApp(props) {
|
||||
const { Component, pageProps } = props;
|
||||
|
@ -19,6 +20,10 @@ export default function MyApp(props) {
|
|||
}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
triggerSync()
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Head>
|
||||
|
|
Loading…
Reference in New Issue
Block a user