Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Remove duplicate navigation bars #331

Closed
helfi92 opened this issue Dec 24, 2018 · 10 comments
Closed

Remove duplicate navigation bars #331

helfi92 opened this issue Dec 24, 2018 · 10 comments
Labels
bug Something isn't working

Comments

@helfi92
Copy link
Contributor

helfi92 commented Dec 24, 2018

STR:

  1. Navigate to http://localhost:5080/shell

screen shot 2018-12-24 at 3 48 50 pm

Actual: There are 2 navigation bars on the left

Expected: There is 1 navigation bar on the left

@helfi92 helfi92 added the bug Something isn't working label Dec 24, 2018
@arshadkazmi42
Copy link
Contributor

I can take this up.

@helfi92
Copy link
Contributor Author

helfi92 commented Dec 25, 2018

Go for it.

@arshadkazmi42
Copy link
Contributor

I started looking into this.
look's like its failing only in firefox. Its working fine in chrome.

Any tips, where should I look for this issue? I tried debugging in Shell component and view.

@helfi92
Copy link
Contributor Author

helfi92 commented Dec 25, 2018

Indeed, this is really strange. I think the problem is in this file https://github.com/taskcluster/taskcluster-web/blob/master/src/components/Shell/index.jsx

@arshadkazmi42
Copy link
Contributor

arshadkazmi42 commented Dec 25, 2018

Looks like its due to this
ref={this.registerChild} I am still trying to find the exact issue.

I think the component is rendering twice

@helfi92
Copy link
Contributor Author

helfi92 commented Dec 25, 2018

Looks like its due to this ref={this.registerChild}

I agree.

@arshadkazmi42
Copy link
Contributor

So I narrowed down the issue.
In firefox, componentDidMount is getting called twice, due to which its rendering two times.
Also, in chrome, componentDidMount is getting called only once.
I am trying to figure out why this happens.

@helfi92
Copy link
Contributor Author

helfi92 commented Dec 27, 2018

I looked into it and believe there is a bug in the hterm library. I created dbkaplun/hterm-umdjs#6.

@arshadkazmi42
Copy link
Contributor

@helfi92 Ok. I think once that is merged, it will fix this issue also.

@helfi92
Copy link
Contributor Author

helfi92 commented Feb 13, 2019

Continued in taskcluster/taskcluster#217.

@helfi92 helfi92 closed this as completed Feb 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants