You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is happening because we're returning an instance of a class that depends on their this value, not really a raw object. this does not bind how you'd expect on classes, so this is expected to fail.
You could bind the right this by calling capture.bind(posthog)() but in that case you might as well just call posthog.capture()
This is our intended usage, so Im tending towards triaging this as not a bug
Uh oh!
There was an error while loading. Please reload this page.
using posthog react
the first works fine:
the second does not work
The text was updated successfully, but these errors were encountered: