Socket io client crash my website on safari
My website crash when it receive data from a socket io server, there is no error in console
the website lost reactivity
i don't have the issue on chrome
5 Replies
Hi @flav. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources do not contain specific information about Socket.io client crashes on Safari in Nuxt applications, especially related to loss of reactivity when receiving data from a Socket.io server. There are some general reports of issues on Safari with Nuxt, such as problems with outdated dependencies or unsupported regular expressions in older Safari versions, but nothing directly related to Socket.io or silent crashes with loss of reactivity.
If you are experiencing loss of reactivity, you might want to review how you handle reactivity in your Vue/Nuxt app, as improper handling of refs, reactive objects, or props can cause reactivity issues, but this is a general Vue concern and not specific to Socket.io or Safari based on the provided sources. For more on reactivity pitfalls, see the advice about not destructuring props and being careful with refs and reactive objects in Vue 3/Nuxt 3 apps Nuxt 3 Reactivity Issue.
If you suspect a browser-specific issue, you may also want to check for compatibility problems with Safari, as there are known issues with certain JavaScript features in older Safari versions, but again, nothing in the sources directly links this to Socket.io or silent crashes.
In summary, the knowledge sources do not explicitly mention your specific issue. You may need to provide more details or check for browser compatibility and reactivity handling in your code.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@360783331962650624> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
when i said it lost the reactivity, the window doesn't answer anymore
I think you mean interactivity
Some minimal repro or code examples would be beneficial.
i can't reproduce
@Cue after 4 years, i have finally found the issue lol
the line was in in a vfor array.sort((a, b) => a.sort etc....)
therefore infinite, as “sort” is mutable
which means that Chrome has security and Safari does not.