-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem right
Description
Branch: dev-bl/zoombuttons
NetCreate.jsx now uses a tab panel, built with ReactStrap, to allow users to select between a Node Table and an Edge Table.
The tab panel works fine, but when you click on a tab to switch panels, a GROUPID_CHANGE event is fired and we get a warning:
Tracing the sequence:
- When you click on a tab, NetCreate.jsx's
toggle()function is called. - ReactStrap's tab panel uses a local state
activeTabto keep track of the current tab. So when I click on a tab panel, we do athis.setState({ activeTab: tab }). - Some other stuff happens.
- And then at some point, it appears that
SessionShell.jsx'srender()is being called, triggering the GROUPID_CHANGE AppCall.
If I remove the setState call in the toggle() method, the GROUPID_CHANGE is not triggered.
It's possible that Bootstrap updates the URL when changing tabs, and that's triggering the SessionShell call?
https://reactstrap.github.io/components/tabs/
But that's probably not the culprit, because there are other setState calls in NetCreate.jsx and whenever setState is called, the GROUPID_CHANGE is triggered.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginvalidThis doesn't seem rightThis doesn't seem right
