Conversation
📝 WalkthroughWalkthroughThe change adds two optional fields— Changes
Sequence Diagram(s)sequenceDiagram
participant UI as UI Component
participant Comp as src/component/lib.ts
participant Client as src/client/index.ts
participant Backend as PostHog SDK / Server
UI->>Comp: call trackEvent(eventName, properties, setProperties?, setOnceProperties?)
Comp->>Client: invoke PostHogComponent.trackEvent(..., setProperties?, setOnceProperties?)
Client->>Backend: build payload (properties + $set?, $set_once?) and send trackUserEvent
Backend-->>Client: ack
Client-->>Comp: result
Comp-->>UI: complete
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Convex does not allow passing $ prefixed args, so custom properties seem like the best way to pass person properties on to Posthog.
Summary by CodeRabbit