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

restore old Breadcrumbs api #1557

Merged
merged 8 commits into from Sep 12, 2023
Merged

restore old Breadcrumbs api #1557

merged 8 commits into from Sep 12, 2023

Conversation

mayank99
Copy link
Contributor

@mayank99 mayank99 commented Sep 11, 2023

Changes

undoes the breaking change from #1369 using children.type and children.props.

both of these apis are brittle and not really recommended, so i'm logging a warning to encourage using the new api. we can also auto-convert to the new api in our codemod.

Testing

added unit test for it.

Docs

since there is no real benefit to using the old api (it's not any less verbose), i'm not documenting it anywhere.

@mayank99 mayank99 added this to the React 3.0 milestone Sep 11, 2023
@mayank99 mayank99 self-assigned this Sep 11, 2023
@mayank99 mayank99 marked this pull request as ready for review September 11, 2023 20:20
@mayank99 mayank99 requested review from a team as code owners September 11, 2023 20:20
@mayank99 mayank99 requested review from gretanausedaite and rohan-kadkol and removed request for a team September 11, 2023 20:20
* const logWarningInDev = createWarningLogger();
* logWarningInDev("please don't use this")
*/
const createWarningLogger = !isDev
Copy link
Contributor

Choose a reason for hiding this comment

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

Love this!

.changeset/soft-crabs-flow.md Outdated Show resolved Hide resolved
@mayank99 mayank99 enabled auto-merge (squash) September 12, 2023 21:02
@mayank99 mayank99 merged commit c40c3c4 into dev Sep 12, 2023
15 of 16 checks passed
@mayank99 mayank99 deleted the mayank/breadcrumbs-legacy branch September 12, 2023 21:18
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.

None yet

3 participants