This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Description
I have a react application with multiple components which are shown in a tab like structure like a browser with multiple tabs. Using mui buttons I'm able to display the corresponding tab however the MQTT connection closed with the 1005 errorcode. After trying lots of things I run out ideas so solve this.
Does someone have an idea what could be the problem?
- When I place a alert in the onclick() in stead of the switch tab function the connection remained open and I can send messages using a switch button on the already displayed tab