workOwonworkOwonA New Way to Connect
HomeFeedJobsCommunitiesEventsFeaturesAbout workOwon
HomeFeedJobsCommunitiesEventsFeaturesAbout workOwon
HomeCommunitiesFrontend Folks

Spent a day debugging a WebSocket that connected twice. React 18 Strict Mode mounts components twice in dev…

KS

Kabir Singh

Full Stack Dev | Node.js, React, MongoDB | Travel-tech | Open to backend-heavy roles

8 Oct 2026· Frontend Folks

Spent a day debugging a WebSocket that connected twice. React 18 Strict Mode mounts components twice in dev to surface missing cleanups. Returning a cleanup function that closes the socket fixed it. Strict Mode was right all along 😅
8 reactions2 comments

Comments

  • VP

    Vivaan Patel8 Oct 2026

    Strict Mode double-mount has caught so many bugs for us.

  • AR

    Ananya Rao8 Oct 2026

    I understood half of this but I'm happy for you 😄

Join the conversation

Join workOwon to react, comment and follow people and communities you care about.

Log inJoin now

Popular communities

See all