Skip to content

fix(a11yStatus): pass correct dependency array#1586

Merged
silviuaavram merged 1 commit intomasterfrom
fix/a11y-status-message-dep-array
Mar 29, 2024
Merged

fix(a11yStatus): pass correct dependency array#1586
silviuaavram merged 1 commit intomasterfrom
fix/a11y-status-message-dep-array

Conversation

@silviuaavram
Copy link
Collaborator

@silviuaavram silviuaavram commented Mar 29, 2024

What:
Fix the dependency array in the useEffect that triggers the a11y status change.

Why:
The parameter we passed to updateA11yStatus was an array, and we wrapped that array into another array which we passed to useEffect. Resulted in a broken behaviour.

How:
Pass the dependency array directly to the useEffect hook.

Checklist:

  • Documentation
  • Tests
  • TypeScript Types
  • Flow Types
  • Ready to be merged

@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5b0d503) to head (a45eb4d).
⚠️ Report is 12 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1586   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         1721      1721           
  Branches       515       515           
=========================================
  Hits          1721      1721           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@silviuaavram silviuaavram merged commit 57981b2 into master Mar 29, 2024
@silviuaavram silviuaavram deleted the fix/a11y-status-message-dep-array branch March 29, 2024 08:35
@github-actions
Copy link

🎉 This PR is included in version 9.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants