Skip to content
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

[Bug]: stop recording have memory leak #1628

Open
1 task done
RenaultZC opened this issue Jan 16, 2025 · 0 comments
Open
1 task done

[Bug]: stop recording have memory leak #1628

RenaultZC opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@RenaultZC
Copy link

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

v2.0.0-alpha.18

Expected Behavior

stop record no memory growth

Actual Behavior

image

Steps to Reproduce

  1. create Vue project and create button
  2. click button start record
  3. click again stop record
  4. no memory growth
const handleClick = () => {
  if (tmp) {
    tmp()

    tmp = null

    console.error('destroy rrweb')
  } else {
    tmp = record({
      emit: function () {}
    })

    console.error('init rrweb')
  }
}

Testcase Gist URL

No response

Additional Information

No response

@RenaultZC RenaultZC added the bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant