wps
wps copied to clipboard
MoreCast: Refactor weather parameter tab state into an array
We're running into a race condition when toggling the visibility of weather parameter tabs and the Forecast Summary tab. To reproduce:
- Launch MoreCast and click the RH tab so both temp and rh are visible.
- Click the Forecast Summary tab
- Click the RH tab.
Actual Result: Temp and RH are both visible Expected Result: Only the RH tab should be visible.
I believe this is happening due to each tab having independent state for managing its visibility and that we can workaround the problem by using a single object to manage the state of all the tabs.