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]: Lightning web component (LWC) doesn't record mutations #1066

Open
1 task done
azavada opened this issue Dec 5, 2022 · 4 comments
Open
1 task done

[Bug]: Lightning web component (LWC) doesn't record mutations #1066

azavada opened this issue Dec 5, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@azavada
Copy link

azavada commented Dec 5, 2022

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

2.0.0-alpha.4

Expected Behavior

Button mutation are recorded and displayed in replayed

Screen Recording 12-5-2022 at 7 59 PM

Actual Behavior

Unable to properly record/replay Lightning Web Components. I built the simple test app where I'm using lightning-button-stateful. Rrweb is unable to record button mutations.

Steps to Reproduce

  1. Click the button
  2. It should change its state

Testcase Gist URL

https://rrwebdebug.com/play/index.html?url=https%3A%2F%2Fgist.githubusercontent.com%2Fazavada%2F132fc4618a76bcedb4abf58300b68a71%2Fraw%2F41c78490ae6f809a6f53ae482eea91601497bf56%2Frrweb-events-lwc&version=1.0.0-alpha.4&play=on

Additional Information

Code Sandbox:
https://codesandbox.io/s/lwc-hello-world-mtlnso?file=/src/foo/app/app.html

@azavada azavada added the bug Something isn't working label Dec 5, 2022
@Juice10
Copy link
Contributor

Juice10 commented Jan 6, 2023

Thanks for submitting this issue @azavada, could you check to see if #1049 fixes the issue for you?

@azavada
Copy link
Author

azavada commented Jan 11, 2023

Thanks for submitting this issue @azavada, could you check to see if #1049 fixes the issue for you?

@Juice10, I've just checked. #1049 doesn't fix this issue.

@Vadman97
Copy link

Vadman97 commented May 28, 2024

Hey @Juice10 , looks like this issue is still around (tested against 729361e). Is there any chance of Lightning Web Component support being prioritized?

With highlight, we have sessions where the LWC is partially recorded but where we fail to capture the entirety of the web component mutations. See the following for an example: https://app.highlight.io/59983/sessions/eFlwMR70MK6FcgKagrOEgWaAUP6Q

Here is the full set of rrweb emit events recorded.
session-contents-compressed (3).json

and the rrwebdebug playback

Let me know if there's any further details that could help.

@jeffdnguyen
Copy link
Contributor

Good news @azavada @Vadman97 ! I believe @Juice10 fixed this issue with #1509 🙌, I was able to confirm that the basic example shared is recorded correctly with the changes.

Screen.Recording.2024-11-14.at.9.52.35.AM.mov

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

4 participants