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: support react18 #5046
feat: support react18 #5046
Conversation
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
1 similar comment
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
package.json
Outdated
@@ -48,7 +48,8 @@ | |||
"@types/jest": "^27.4.1", | |||
"@types/jest-axe": "3.5.3", | |||
"@types/lodash": "^4.14.180", | |||
"@types/react": "^17.0.43", | |||
"@types/react": "^17.0.44", |
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.
诶这里的 @types/react
咋还是 17
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.
前几天我更新的时候还是 17,这两天才更新的 18.. 😮
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
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.
LGTM
等 antd 先发布吧~它们发完没问题了我再来合并
顺便我也还得抽空再看看 React 18 strict mode 下的适配问题
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
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.
emm…… CI 挂了,看起来还有些组件漏加了 children
定义
其他的我晚点在看看 ~ |
嗯嗯不急~反正还要等 antd |
c7e7c07
to
dd0199e
Compare
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
1 similar comment
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
Codecov Report
@@ Coverage Diff @@
## master #5046 +/- ##
==========================================
+ Coverage 54.46% 54.60% +0.14%
==========================================
Files 278 279 +1
Lines 5795 5857 +62
Branches 1349 1392 +43
==========================================
+ Hits 3156 3198 +42
- Misses 2476 2497 +21
+ Partials 163 162 -1
Continue to review full report at Codecov.
|
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
53e031f
to
fd75c6b
Compare
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
d714ce8
to
5918a41
Compare
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
1 similar comment
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
话说这个 PR 是不是可以再搞一下了 🤔 antd 已经发布了兼容 React 18 的逻辑 |
ok 下午搞下 |
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
7e461e3
to
c88b689
Compare
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
1 similar comment
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
// eslint-disable-next-line | ||
// @ts-ignore |
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.
这个好像不用加 ignore,我删掉之后好像也没有报错
@@ -155,7 +155,7 @@ export const PullToRefresh: FC<PullToRefreshProps> = p => { | |||
axis: 'y', | |||
target: elementRef, | |||
enabled: !props.disabled, | |||
eventOptions: supportsPassive ? { passive: false } : false, | |||
eventOptions: supportsPassive ? { passive: false } : undefined, |
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.
这里也是,我这里不改也是正常的
@@ -31,7 +31,7 @@ exports[`ActionSheet basic usage 1`] = ` | |||
</div> | |||
<div | |||
class="adm-popup-body adm-popup-body-position-bottom" | |||
style="transform: translate(0, 92.19667326069148%);" | |||
style="transform: translate(0, 68.58969969000708%);" |
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.
之前更新 yarn.lock 的时候,
|
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
floating bubble 的 bounds 我也改成单行里写 any 了,比 ts-ignore 还稍微好一些,感觉这里应该是 use-gesture 的问题,我查了它文档,useDrag 的 bounds 是支持 ref 的:
|
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.
LGTM 总算可以合并了 🎉
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-5046.surge.sh |
|
@lbyupup 看下发布日志哈,里面有写,不确定的话,直接升级到最新版也可以 |
发了个 npm 包用来测试 antd-mobile-with-react18