Skip to content

fix: prevent double discovered breadcrumbs#3714

Merged
just-boris merged 2 commits intomainfrom
global-breadcrumbs-fix
Aug 4, 2025
Merged

fix: prevent double discovered breadcrumbs#3714
just-boris merged 2 commits intomainfrom
global-breadcrumbs-fix

Conversation

@just-boris
Copy link
Member

@just-boris just-boris commented Aug 2, 2025

Description

Revert this PR: #3704, and also add some extra fixes and tests

Apparently these styles served extra purpose, not only backward compatibility

Related links, issue #, if available: V1881484904

How has this been tested?

Added a regression test

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@just-boris just-boris requested a review from a team as a code owner August 2, 2025 12:23
@just-boris just-boris requested review from johannes-weber and removed request for a team August 2, 2025 12:23
});
return () => {
unregisterAppLayout?.();
setDiscoveredBreadcrumbs(null);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what happened. We need to clean up discoveredBreadcrumbs value if it is not used

@just-boris just-boris force-pushed the global-breadcrumbs-fix branch from 7b64a75 to 54b3284 Compare August 2, 2025 12:28
SPDX-License-Identifier: Apache-2.0
*/

// backward compatibility before this commit: TODO_REPLACE_ME
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TODO is expected. I want to put here the commit hash of the current PR which I do not know until it is merged.

I will open a follow up PR to replace

@codecov
Copy link

codecov bot commented Aug 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.96%. Comparing base (8cda3da) to head (54b3284).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3714   +/-   ##
=======================================
  Coverage   96.96%   96.96%           
=======================================
  Files         820      820           
  Lines       23786    23789    +3     
  Branches     8337     8272   -65     
=======================================
+ Hits        23064    23067    +3     
+ Misses        716      673   -43     
- Partials        6       49   +43     

☔ 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.

@just-boris just-boris added this pull request to the merge queue Aug 4, 2025
Merged via the queue into main with commit f3bdaa2 Aug 4, 2025
39 checks passed
@just-boris just-boris deleted the global-breadcrumbs-fix branch August 4, 2025 10:43
pranshuteotia pushed a commit to pranshuteotia/components that referenced this pull request Sep 3, 2025
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