Closed DanieloV closed 1 week ago
Ref #229 the two issues I noticed was
I see this PR also updates the beforeDestroyed to use unmounted which I believe I tried yesterday but didn't fix all the cases where a connection would stay open, and if I remember correctly the lobby connection is only created in the created
lifecycle hook, so it might not recreate it if closed in unmounted, not sure.
Seems like maybe the vue 3 router history mode is different from the vue 2 router history mode in that it doesn't destroy and create the views when you navigate between pages and instead only unmounts and mounts it.
Btw. what's your name on discord? The image above was sent in a developer channel there that I can add you to
You can find me on discord as DLegend. I noticed the number 1 and that was fixed with the beforeDestroyed -> beforeUnmount
change which was required by the vue update from 2 to 3.
I can't seem to replicate the point 2 either. Tried spectating and then using browser navigation in and out and it worked ok. Let me know if you can still replicate it and what are the steps.
@sindreslungaard for when you have time this has also been ready for review again. And once this and the https://github.com/sindreslungaard/duel-masters/pull/224 are merged, the development for other frontend related stuff can go somewhat smoother.
👍i'll have a look at this and the other PRs when I get back from vacation next week
Related to https://github.com/sindreslungaard/duel-masters/pull/229 - Reopens it as it was reverted
Also adds tailwindcss through the package manager.
This fixes the websockets not closing issues.