react-amplitude
react-amplitude copied to clipboard
useInstrument and useLogEvent hooks
I haven't even tested these yet but I thought I'd get this up here as some motivation.
Ah. In the process of testing I realized I missed a few important details like it currently using the legacy context API.
Is there any ETA for this? Just curious - wondering if it's a stale branch or under active development
@Andarist It's not stale. Just not quite ready yet. :) Appreciate your feedback/comments if you have any!
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 no problem Ryan, I was happy to help. I'm eager to use hooks version but I'm going to wait patiently π
π friendly πAre there any plans to move this forward in the near future π ?
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.
It would be great if Amplitude could officially support React and react hooks π This would make Amplitude more attractive to use on web.