react-use-websocket icon indicating copy to clipboard operation
react-use-websocket copied to clipboard

Back-Port the Generic Type Implementation for lastJsonMessage?

Open sharunkumar opened this issue 1 year ago • 0 comments

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

sharunkumar avatar Feb 05 '24 23:02 sharunkumar