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

Commit bed9705

Browse files
committed
chore(debug):
debug ajax
1 parent edf50f7 commit bed9705

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

containers/PostsThread/logic.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ let store = null
3535
let sub$ = null
3636

3737
// TODO: move to utils
38-
const validFilter = R.pickBy(
39-
R.compose(
40-
R.not,
41-
R.isEmpty
42-
)
43-
)
38+
const validFilter = R.pickBy(R.compose(R.not, R.isEmpty))
4439

4540
export const inAnchor = () => store.setHeaderFix(false)
4641
export const outAnchor = () => store.setHeaderFix(true)
@@ -143,7 +138,10 @@ const DataSolver = [
143138
},
144139
{
145140
match: asyncRes(EVENT.COMMUNITY_CHANGE),
146-
action: () => loadPosts(),
141+
action: () => {
142+
debug('======= fucking COMMUNITY_CHANGE ')
143+
loadPosts()
144+
},
147145
},
148146
{
149147
match: asyncRes(EVENT.TABBER_CHANGE),
@@ -184,11 +182,13 @@ const ErrSolver = [
184182
]
185183

186184
export function init(_store) {
185+
debug('======== init')
187186
store = _store
188187
// if (sub$) sub$.unsubscribe()
189188
sub$ = sr71$.data().subscribe($solver(DataSolver, ErrSolver))
190189
}
191190

192191
export function uninit() {
192+
debug('======== un init')
193193
if (sub$) sub$.unsubscribe()
194194
}

0 commit comments

Comments
 (0)