mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-13 07:46:54 +08:00
Reduce the request frequency to the Binance API and add backend caching.
This commit is contained in:
@@ -11,8 +11,9 @@ export function CompetitionPage() {
|
||||
'competition',
|
||||
api.getCompetition,
|
||||
{
|
||||
refreshInterval: 5000,
|
||||
revalidateOnFocus: true,
|
||||
refreshInterval: 15000, // 15秒刷新(竞赛数据不需要太频繁更新)
|
||||
revalidateOnFocus: false,
|
||||
dedupingInterval: 10000,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user