Skip to content

feat: add event-debugging environment #167

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

Merged
merged 1 commit into from
Jun 16, 2020
Merged

feat: add event-debugging environment #167

merged 1 commit into from
Jun 16, 2020

Conversation

smeijer
Copy link
Member

@smeijer smeijer commented Jun 16, 2020

What:
Based on/inspired by testing-library/user-event#351

Why:
Because we can (support this).

How:
I've added a /events route, and a DomEvents component. This component reuses the Preview component, and just listens to all events that happen there.

Events are stored on a reference, and NOT in state, as a performance optimization. Once every 16 ms the eventCount is synced back to the state, to trigger a component update when necessary.

There are still some things to do, but I'll create an issue for that. I think it's already useful in the current form and by breaking up we keep the changes small.

Checklist:

  • Tests
  • Ready to be merged

testing-playground-events

@smeijer smeijer added the feature New feature or request label Jun 16, 2020
@smeijer smeijer self-assigned this Jun 16, 2020
@smeijer smeijer force-pushed the feature/eventlog branch from e113d34 to 50a28d0 Compare June 16, 2020 14:10
@smeijer smeijer merged commit 367858c into develop Jun 16, 2020
@smeijer smeijer deleted the feature/eventlog branch June 16, 2020 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant