Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分事件优化处理 #196

Open
lii02cc opened this issue May 12, 2023 · 0 comments
Open

部分事件优化处理 #196

lii02cc opened this issue May 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lii02cc
Copy link

lii02cc commented May 12, 2023

项目中多处使用类似resize的事件,可以考虑加一下防抖或节流

如:src/hooks/useEcharts.ts

import { throttle } from 'lodash-es'

 window.addEventListener('resize', throttle(fun, 300))

@HalseySpicy HalseySpicy added the enhancement New feature or request label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants