-
-
Notifications
You must be signed in to change notification settings - Fork 244
fix: cannot find parent container error in prod mode #134
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
Conversation
src/InkTabBarNode.js
Outdated
|
||
const isDev = process.env.NODE_ENV !== 'production'; | ||
let isDev = process.env.NODE_ENV !== 'production'; | ||
isDev = true; |
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.
这个改动是什么意思
test 挂了,在修 |
2c73c9b
to
e94082c
Compare
ready 了 |
src/TabBarRootNode.js
Outdated
componentDidMount() { | ||
// child inktabbar depends on parent ref | ||
// so in mounting phase, we render parent first and then children | ||
this.didMount = true; |
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.
didMount -> isMount?
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.
改成 hasMounted 了
class="rc-tabs-nav" | ||
className="rc-tabs-nav" | ||
> | ||
<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.
发现个问题,这个地方还没排查出为什么
class="rc-tabs-nav" | ||
className="rc-tabs-nav" | ||
> | ||
<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.
发现个问题,还没查处为什么 :(
这里是不是还是 setTimeout 的方法好一些,ScrollableTabBarNode 和 SwipeableTabBarNode 也有类似的情况,我们要不然每一层都得做,要不然得动态判断下一层孩子有没有 InkTabBarNode |
#130