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

[core] feat(useHotkeys): warn when used outside of HotkeysProvider #5254

Merged
merged 11 commits into from
Apr 13, 2022

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Apr 12, 2022

Fixes #3755 (for Table2, not touching Table since it's deprecated)

Changes proposed in this pull request:

  • Log a console warning when useHotkeys() is used outside of a <HotkeysProvider> tree.
  • Clean up some docs and tests which still referenced the possibility of React 15 (which was dropped in v4.0)

@blueprint-bot
Copy link

feat(useHotkeys): warn when used outside of HotkeysProvider

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

spy -> stub

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

refactor some tests, restore stub differently

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

clean console for table tests

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

change test assertion

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

remove one assertion

Previews: documentation | landing | table | demo

@adidahiya
Copy link
Contributor Author

I realized that table-dev-app wasn't using the provider. This is now fixed, and the dialog works:

image

@adidahiya adidahiya merged commit b973fc3 into develop Apr 13, 2022
@adidahiya adidahiya deleted the ad/hotkeys-housekeeping branch April 13, 2022 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[table] tracking skipped unit tests for console warnings
2 participants