Fixed loader

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-07-05 13:34:04 +02:00
parent 11dd18d8eb
commit ba0e70053b
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6

View File

@ -30,7 +30,7 @@ interface State {
/** /**
* Display a simple loading animation at the top of the page * Display a simple loading animation at the top of the page
* *
* @version 1.0.0 * @version 1.0.0
*/ */
export default class Loader extends React.Component<Props, State> { export default class Loader extends React.Component<Props, State> {
@ -48,8 +48,8 @@ export default class Loader extends React.Component<Props, State> {
public componentWillUnmount() { public componentWillUnmount() {
if (this.props.auto) { if (this.props.auto) {
Router.events.off('routechangeComplete', this.routeChangeComplete) Router.events.off('routeChangeComplete', this.routeChangeComplete)
Router.events.off('routechangeStart', this.routeChangeStart) Router.events.off('routeChangeStart', this.routeChangeStart)
} }
} }