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

fix: 修复useVirtualList - getDistanceTop调用itemHeight传参错误 #1730

Merged
merged 3 commits into from
Jul 4, 2022
Merged

fix: 修复useVirtualList - getDistanceTop调用itemHeight传参错误 #1730

merged 3 commits into from
Jul 4, 2022

Conversation

8696
Copy link
Contributor

@8696 8696 commented Jul 1, 2022

[中文版模板 / Chinese template]

🤔 修复useVirtualList - getDistanceTop调用itemHeight传参错误

详见:#1729

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#1729

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@CLAassistant
Copy link

CLAassistant commented Jul 1, 2022

CLA assistant check
All committers have signed the CLA.

@hchlq
Copy link
Collaborator

hchlq commented Jul 3, 2022

麻烦加下测试用例哈~

@@ -1,5 +1,6 @@
import { act, renderHook } from '@testing-library/react-hooks';
import useVirtualList, { Options } from '../index';
import { sleep } from '../../utils/testingHelpers';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没看到用 sleep 的地方诶

packages/hooks/src/useVirtualList/__tests__/index.test.ts Outdated Show resolved Hide resolved
@crazylxr
Copy link
Collaborator

crazylxr commented Jul 4, 2022

LGTM

@crazylxr crazylxr merged commit 0e51ea7 into alibaba:master Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants