Skip to content

Conversation

@Shokubeni
Copy link
Contributor

It is proposed to export function 'resetGlobalState' that allows resetting subscribers for a specific URL. There are some cases when that state can't be cleaned by the hook itself. The problem is described in the readme as an example.

@robtaussig
Copy link
Owner

Thank you @Shokubeni for this and for taking the time to submit a PR along with updating the README. I'll take a closer look later this evening!

@robtaussig robtaussig merged commit cc1d275 into robtaussig:master Feb 6, 2022
@robtaussig
Copy link
Owner

robtaussig commented Feb 6, 2022

@Shokubeni Thank you very much for this! Approved, merged, and released to react-use-websocket@3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants