Skip to content

Commit

Permalink
fix repeat loading
Browse files Browse the repository at this point in the history
  • Loading branch information
anyongjin committed Dec 11, 2024
1 parent e8e2ebb commit 88a3543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
yarn-error.log
.svelte-kit
.vscode

dist.zip

node_modules

Expand Down
1 change: 1 addition & 0 deletions src/lib/chart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
})
let chartObj = $chart!;
chartObj.setLoadMoreDataCallback(({type, data, callback}) => {
if($ctx.loadingKLine)return
$ctx.loadingKLine = true
let from = 0, to = 0;
if (!!data){
Expand Down

0 comments on commit 88a3543

Please sign in to comment.