Skip to content
This repository was archived by the owner on Oct 24, 2022. It is now read-only.
This repository was archived by the owner on Oct 24, 2022. It is now read-only.

WebSocket connections are not cleaned when ShoutBox is unmounted #2

@jjylik

Description

@jjylik

When the ShoutBox is mounted, it opens a new websocket connection which is never closed. You can see the following errors on console

Uncaught TypeError: Cannot read property 'scrollTo' of null

image

This can be reproduced by toggling the shoutbox a couple of times

A possible fix would be to close the websocket on unmount or lifting the ws connection to some parent component which is mounted only once

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions