Closed bgergen closed 4 years ago
Thanks! Makes sense. Do you think this would warrant a major version bump? That would be a bummer...
Oof, good question. It shouldn't, but maybe it could cause issues if anyone is importing that type for some reason? I can't imagine what they would be doing with it though...
If we do need a major version bump, maybe it makes sense to wait to release until we've got some other stuff in there? I'm still hoping to figure out some way to push contextual data into the useTracking
hook without needing to wrap the returned markup in a new provider component.
This PR removes
TrackingContextType
, which I believe is leftover from an era when the library used the legacy context API. As far as I can tell it no longer provides any value. I also removed the test that checked for the context type export and replaced it with the same check for theuseTracking
hook.