neilenns / vatsim-plan-verifier

Verifies flight plans for vatsim flights
MIT License
1 stars 0 forks source link

Toggling theme breaks the socket connection #1098

Open neilenns opened 6 months ago

neilenns commented 6 months ago

Toggling the theme causes the socket connection to drop, all the data to go away, and the connect button to stop working. You have to reload the page to fix it.

neilenns commented 6 months ago

I might have to go back to a ref for the socket and expose it via the vatsim hook. See https://stackoverflow.com/questions/68185436/properly-typing-useref-values-in-a-react-custom-hook