Skip to content

Commit

Permalink
update uplot to 1.6.31 & fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
v.trushin committed Nov 26, 2024
1 parent 0ab75f5 commit 4ab2669
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
15 changes: 8 additions & 7 deletions statshouse-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion statshouse-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"remark-gfm": "^4.0.0",
"sass": "^1.69.5",
"typescript": "^4.9.5",
"uplot": "^1.6.27",
"uplot": "^1.6.31",
"use-deep-compare-effect": "^1.8.1",
"web-vitals": "^3.5.0",
"zustand": "^4.5.0"
Expand Down
4 changes: 1 addition & 3 deletions statshouse-ui/src/components/UPlotWrapper/UPlotWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ export const _UPlotWrapper: React.FC<UPlotWrapperProps> = ({

const updateData = useCallback((data: uPlot.AlignedData) => {
if (uRef.current) {
uRef.current.batch((u: uPlot) => {
u.setData(deepClone(data));
});
uRef.current.setData(deepClone(data));
}
}, []);

Expand Down

0 comments on commit 4ab2669

Please sign in to comment.