Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Conversation

@marvinhagemeister
Copy link
Contributor

@marvinhagemeister marvinhagemeister commented Oct 7, 2018

I'm currently integrating the profiler into preactjs as an experimental feature and noticed, that the profiler reads from the memoizedInteractions property directly from a fiber instead of from event.data like it is done for all other properties.

The integration is nearly done and this is the only inconsistency I've come across. I'm really impressed by the profiler and how easy it was to add support for it. It's really amazing 💯 👍

This PR fixes that by adding a data property to the rootCommitted event similar to how all other events work.

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@bvaughn
Copy link
Contributor

bvaughn commented Oct 22, 2018

I'll give this a quick test as soon as #1190 lands and if it works, I should be able to include it in the release I'm putting out today.

if (context && Object.keys(context).length === 0) {
context = null;
}
memoizedInteractions = publicInstance.memoizedInteractions;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be setting this for the HostRoot tag type actually. I can make this change.

@bvaughn
Copy link
Contributor

bvaughn commented Oct 22, 2018

Merged via f109374

Thanks!

@bvaughn bvaughn closed this Oct 22, 2018
@marvinhagemeister
Copy link
Contributor Author

@bvaughn You're awesome! 🎉 Would've done the requested changes myself as the first thing tomorrow morning, but I'm happy that it's merged. Thanks again for looking at this PR 👍💯

@marvinhagemeister marvinhagemeister deleted the interactions_data branch October 22, 2018 19:12
@bvaughn
Copy link
Contributor

bvaughn commented Oct 22, 2018

Thank you!

Just released as 3.4.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants