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

refactor: de-duplicate deprecation warning calls and tests #8135

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

mikehardy
Copy link
Collaborator

A quick take on reducing boilerplate - I wasn't sure it would even work so it was easier to just try it vs try to explain it, since if it didn't work it wasn't worth explaining but the code itself was just the work of a few minutes

Copy link

vercel bot commented Nov 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-firebase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 4:21pm

@mikehardy
Copy link
Collaborator Author

I did a positive / negative visual test on this to make sure I wasn't lying to myself and if I specifically broke the test by calling deprecated in non-deprecated slot, or calling non-deprecated in deprecated slot it did trigger failures as expected

@russellwheatley russellwheatley merged commit 78bde5e into core-deprecations Nov 14, 2024
17 of 19 checks passed
@russellwheatley russellwheatley deleted the core-deprecations-dedup-maybe branch November 14, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants