ref(replay): Split replay integration & container class#6407
Conversation
| } | ||
|
|
||
| if (session.id !== this.session?.id) { | ||
| session.previousSessionId = this.session?.id; |
Check failure
Code scanning / CodeQL
Insecure randomness
size-limit report 📦
|
7f83c10 to
e38b69b
Compare
Lms24
left a comment
There was a problem hiding this comment.
I like the change because a) single responsibility is always good and b) (as we previously discussed) it gets us one step closer to converting the replay logic into a functional structure. We can start thinking about this if we have the time after we finish our other points on the roadmap. Added a point to #5326.
| describe('integration settings', () => { | ||
| describe('blockAllMedia', () => { | ||
| it('sets the correct configuration when `blockAllMedia` is disabled', async () => { | ||
| const { replay } = await mockSdk({ replayOptions: { blockAllMedia: false } }); |
There was a problem hiding this comment.
Good change (never knew that the previous syntax actually works 🤔 )
There was a problem hiding this comment.
yeah, we should prob. do that everywhere! But just stumbled over this because of some other refactoring made necessary here 😅
e38b69b to
cf0604f
Compare
|
Note: I also added an entry to the MIGRATION docs. |
cf0604f to
6a99d9d
Compare
09c1797 to
23c964d
Compare
23c964d to
e643015
Compare
A part of #6406, this splits up the main
index.tsfile of replay into two parts: