react-use-websocket
react-use-websocket copied to clipboard
Back-Port the Generic Type Implementation for lastJsonMessage?
I was wondering if the patch that added generics to lastJsonMessage can be back-ported to 3.0 version, for projects that still use React 16 and want the type-safety.
The patch commit being: https://github.com/robtaussig/react-use-websocket/commit/7f706878666f9ce28660e34c11d10728f96fe3b1