Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Expand useTracking API to accept contextual data #168
Expand useTracking API to accept contextual data #168
Changes from 1 commit
9c11b0d
6303cd4
c707421
c621ed8
67d18d2
e1ec87d
e9902af
c032079
584188a
6d93d49
8b708cc
ba02f10
f4b9c19
266a3bd
ef0a911
765276c
5d04a23
7547855
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe click it a couple times and wrap in
act()
for good measure? Would be great to also assert that the state is actually updated to confirm.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great call on this. Adding a couple extra clicks exposed a bug. I decided not to wrap the clicks in
act()
because it wasn't making a difference in the result, and it turns out that's because as of React 16.8, if we usemount
, enzyme wraps calls to.simulate
inact
for us. I think we just needed it in the other spot to handle the asynchronicity.I still want to do some manual testing again before we merge this just to be sure everything is working properly. Should we aim for a Monday merge?