-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: lazy load session recording #1588
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: -266 kB (-8.23%) ✅ Total Size: 2.97 MB
ℹ️ View Unchanged
|
@@ -825,7 +842,10 @@ describe('posthog core', () => { | |||
posthog.sessionRecording = { | |||
afterDecideResponse: jest.fn(), | |||
startIfEnabledOrStop: jest.fn(), | |||
} as unknown as SessionRecording | |||
} as OnlyValidKeys< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting... i expected this change to highlight the incorrect setup here that the as unknown
is hiding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to add tests on the loader separately from the loaded file
move session recording entirely to lazy loaded not just the rrweb portions
tested locally and can still record
still need to figure out how to safely release this since it will be published to NPM before the new lazy bundle is available on the CDN