We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119368f commit 482766cCopy full SHA for 482766c
packages/rrweb/src/record/error-handler.ts
@@ -25,7 +25,9 @@ export const callbackWrapper = <T extends Callback>(cb: T): T => {
25
return cb(...rest);
26
} catch (error) {
27
if (errorHandler && errorHandler(error) === true) {
28
- return;
+ return () => {
29
+ // This will get called by `record()`'s cleanup function
30
+ };
31
}
32
33
throw error;
0 commit comments