|
|
|
@ -98,12 +98,12 @@ class Boards extends Component{
|
|
|
|
|
this.fetchBoards()
|
|
|
|
|
this.fetchAll()
|
|
|
|
|
|
|
|
|
|
on('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
|
// on('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
off('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
|
}
|
|
|
|
|
// componentWillUnmount() {
|
|
|
|
|
// off('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
|
// }
|
|
|
|
|
updateNavSuccess = () => {
|
|
|
|
|
this.fetchBoards()
|
|
|
|
|
if (this.props.match.params.boardId == this.state.boardid) {
|
|
|
|
@ -112,7 +112,7 @@ class Boards extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
|
if ( prevProps.match.params.boardId != this.props.match.params.boardId ) {
|
|
|
|
|
if ( prevProps.match.params.boardId !== this.props.match.params.boardId ) {
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true
|
|
|
|
|
})
|
|
|
|
|