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

Deprecate useElementShouldClose, export granular event hooks #914

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

lyzadanger
Copy link
Contributor

Deprecate useElementShouldClose in favor of updated, granular event hooks, and make new hooks available in package API.

Follow up to fixing #900

(Side note: the @deprecated keyword as applied to component functions in the past has triggered my editor to recognize those components (when imported or used) as deprecated, but that isn't the case for this hook function. I hope I ... deprecated it correctly?)

Deprecate `useElementShouldClose` in favor of updated, granular event
hooks, and make new hooks available in package API.
@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #914 (d07ec89) into main (db2a927) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #914   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           63        63           
  Lines          790       790           
  Branches       284       284           
=========================================
  Hits           790       790           
Impacted Files Coverage Δ
src/hooks/use-element-should-close.js 100.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@acelaya
Copy link
Contributor

acelaya commented Mar 10, 2023

(Side note: the @deprecated keyword as applied to component functions in the past has triggered my editor to recognize those components (when imported or used) as deprecated, but that isn't the case for this hook function. I hope I ... deprecated it correctly?)

It works in WebStorm

image

@lyzadanger lyzadanger merged commit ac9721b into main Mar 20, 2023
@lyzadanger lyzadanger deleted the export-event-hooks branch March 20, 2023 15:43
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.

2 participants