mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-23 03:12:14 +00:00
Fixed loader
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
11dd18d8eb
commit
ba0e70053b
@ -30,7 +30,7 @@ interface State {
|
||||
|
||||
/**
|
||||
* Display a simple loading animation at the top of the page
|
||||
*
|
||||
*
|
||||
* @version 1.0.0
|
||||
*/
|
||||
export default class Loader extends React.Component<Props, State> {
|
||||
@ -48,8 +48,8 @@ export default class Loader extends React.Component<Props, State> {
|
||||
|
||||
public componentWillUnmount() {
|
||||
if (this.props.auto) {
|
||||
Router.events.off('routechangeComplete', this.routeChangeComplete)
|
||||
Router.events.off('routechangeStart', this.routeChangeStart)
|
||||
Router.events.off('routeChangeComplete', this.routeChangeComplete)
|
||||
Router.events.off('routeChangeStart', this.routeChangeStart)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user