-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
refactor: use ScrollLocker #220
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/dialog/fua3hb9m8 |
Codecov Report
@@ Coverage Diff @@
## master #220 +/- ##
==========================================
- Coverage 98.08% 98.07% -0.02%
==========================================
Files 6 6
Lines 157 156 -1
Branches 46 45 -1
==========================================
- Hits 154 153 -1
Misses 2 2
Partials 1 1
Continue to review full report at Codecov.
|
@@ -133,6 +133,7 @@ export default function Dialog(props: IDialogChildProps) { | |||
} | |||
|
|||
// ========================= Effect ========================= | |||
// eslint-disable-next-line consistent-return | |||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
末尾加return null 或者 空函数可以消灭这个lint 的disable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
……不能 return null
这个 |
No description provided.