-
-
Notifications
You must be signed in to change notification settings - Fork 243
feat: New tabs #265
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
feat: New tabs #265
Conversation
|
This pull request fixes 8 alerts when merging 317fb40 into b785993 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 8 alerts when merging 3c006c7 into b785993 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 8 alerts when merging d08b801 into b785993 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 8 alerts when merging 9a12c56 into b785993 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 8 alerts when merging 035d5e1 into b785993 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 8 alerts when merging e3d3c15 into b785993 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 8 alerts when merging b550452 into b785993 - view on LGTM.com fixed alerts:
|
|
This pull request introduces 1 alert and fixes 8 when merging c0d4344 into b785993 - view on LGTM.com new alerts:
fixed alerts:
|
|
This pull request introduces 1 alert and fixes 8 when merging 8cc8ac7 into b785993 - view on LGTM.com new alerts:
fixed alerts:
|
|
This pull request fixes 8 alerts when merging 202651b into b785993 - view on LGTM.com fixed alerts:
|
| setMergedActiveKey(tabs[newActiveIndex]?.key); | ||
| } | ||
| setActiveIndex(newActiveIndex); | ||
| }, [tabs.map(tab => tab.key).join('_'), mergedActiveKey, activeIndex]); |
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.
This is a potential bug, it is creating a new array every time thus triggering this useEffect more than needed
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.
array is join to string, not count array as condition.
还需要改造支持移动设备滚动,交互可以先看起来。
ref ant-design/ant-design#24284
Preview:https://tabs-git-new-tabs.react-component.now.sh/iframe.html?id=rc-tabs--mix
...follow the last tab