-
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: allow custom replay root #1061
Conversation
Size Change: +146 B (0%) Total Size: 853 kB
ℹ️ View Unchanged
|
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.
If that's a quick win and it works with Flutter web, I'd be fine with it.
@pauldambra is there a reason we hadn't included this as an option before? |
@@ -61,6 +61,7 @@ export declare type recordOptions<T> = { | |||
plugins?: RecordPlugin[] | |||
mousemoveWait?: number | |||
keepIframeSrcFn?: KeepIframeSrcFn | |||
root?: HTMLElement |
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.
should we document here why we're adding this config?
do all flutter users have to set it?
@@ -171,6 +171,7 @@ export interface SessionRecordingOptions { | |||
// our settings here only support a subset of those proposed for rrweb's network capture plugin | |||
recordHeaders?: boolean | |||
recordBody?: boolean | |||
root?: HTMLElement |
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.
oh... or should comment on when and why go here?
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.
test failure looks easy to fix
we should definitely confirm this still works for web and solves problem for flutter but otherwise no reason not to expose it - just probably need a really clear comment on when and why to set it
Do not need this in favour of #1082 |
Changes
Add a new
root
option to the JSsession_replay
configChecklist