Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 9c18703

Browse files
committed
chore(debug):
life cycle issue
1 parent 8cbe74c commit 9c18703

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

containers/CommunityBanner/styles/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ export const BaseTabber = styled.div`
2222
2323
position: absolute;
2424
bottom: -16px;
25+
margin-left: -10px;
2526
width: 80vw;
2627
`

containers/PostsThread/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ class PostsThreadContainer extends React.Component {
4646
logic.init(postsThread)
4747
}
4848

49+
// componentWillUnmount will be called everytime when route changes
50+
// so don't use
4951
componentWillUnmount() {
50-
logic.uninit()
52+
// logic.uninit()
5153
}
5254

5355
render() {

containers/PostsThread/logic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,6 @@ export function init(_store) {
189189
}
190190

191191
export function uninit() {
192-
debug('======== un init')
193-
if (sub$) sub$.unsubscribe()
192+
// debug('======== un init')
193+
// if (sub$) sub$.unsubscribe()
194194
}

0 commit comments

Comments
 (0)