mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-22 07:59:22 +03:00
fixed KidsComponent event listener not falling off on unmount
This commit is contained in:
parent
8039c0abba
commit
c55d9ac147
@ -23,6 +23,9 @@ module.exports = recl
|
||||
(not _keys.isEmpty()) and _keys.every (k) =>
|
||||
@state.cont[@state.path+"/"+k]?
|
||||
|
||||
componentWillUnmount: ->
|
||||
TreeStore.removeChangeListener @_onChangeStore
|
||||
|
||||
componentDidMount: ->
|
||||
TreeStore.addChangeListener @_onChangeStore
|
||||
TreeActions.getPath @state.path,"kids" unless @gotPath()
|
||||
|
Loading…
Reference in New Issue
Block a user