react-amplitude icon indicating copy to clipboard operation
react-amplitude copied to clipboard

useInstrument and useLogEvent hooks

Open trashstack opened this issue 6 years ago β€’ 8 comments

I haven't even tested these yet but I thought I'd get this up here as some motivation.

trashstack avatar Feb 24 '19 08:02 trashstack

Ah. In the process of testing I realized I missed a few important details like it currently using the legacy context API.

trashstack avatar Feb 25 '19 02:02 trashstack

Is there any ETA for this? Just curious - wondering if it's a stale branch or under active development

Andarist avatar Mar 06 '19 11:03 Andarist

@Andarist It's not stale. Just not quite ready yet. :) Appreciate your feedback/comments if you have any!

ryanashcraft avatar Mar 06 '19 19:03 ryanashcraft

Thanks for the thorough review @Andarist! Excellent points all around. After some discussion and experimentation we're going to do another sweeping pass on this. We want to reimagine the library to be hooks-first. We feel this attempt compromises too much because it tries too hard to maintain compatibility with the 1.0 component-based API.

I can't commit to an ETA but it is something that we're excited to work on.

ryanashcraft avatar Mar 08 '19 01:03 ryanashcraft

@ryanashcraft no problem Ryan, I was happy to help. I'm eager to use hooks version but I'm going to wait patiently πŸ˜…

Andarist avatar Mar 10 '19 13:03 Andarist

πŸ‘‹ friendly πŸ“Are there any plans to move this forward in the near future πŸ˜‰ ?

Andarist avatar May 10 '19 11:05 Andarist

Hi @Andarist,

Sorry about the lack of progress on this. @ryanashcraft and I have both been busy with other projects and haven't been able to come back to this since the earlier discussion.

We haven't completely forgotten this but I'm afraid progress might be stalled for a while longer before this gets back to the top of the pile for us.

trashstack avatar May 10 '19 19:05 trashstack

It would be great if Amplitude could officially support React and react hooks πŸ˜„ This would make Amplitude more attractive to use on web.

joshuazmiller avatar Sep 14 '21 23:09 joshuazmiller