-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
<CentProvider> does not disconnect before unmount. It's designed to connect once on application init phase.
I wish to use centrifugo on one-two specific pages in SPA admin panel in a project. I want to connect to Centrifugo server on demand and disconnect then it is unneeded.
I believe it is possible with current available interface, but it whould be much appropriate just to add a counterpart for the following lines:
react-cent/src/cent-provider.js
Lines 53 to 55 in ab9b895
| componentDidMount = () => { | |
| this.cent.connect(this.props.onConnect) | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels