这是indexloc提供的服务,不要输入任何密码
Skip to content

chore(logbox): Remove LogBox.ignoreLogs() as it no longer works #2956

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

markrickert
Copy link
Member

Description

This comit removes LogBox.ignoreLogs([]) from the ignite boilerplate as it was crippled in react-native 0.71.

https://reactnative.dev/blog/2023/01/12/version-071#restoring-proptypes

As part of this change, we are also removing the console filtering from LogBox.ignoreLog. This means logs that you have previously filtered with Logbox.ignoreLog will start appearing again in the console when you upgrade.

This is expected, because it allows logs such as deprecation warnings to be found and fixed.

You can see the commit that did this here: facebook/react-native@fa2842d

Checklist

  • I have manually tested this, including by generating a new app locally (see docs).

This comit removes `LogBox.ignoreLogs([])` from the ignite boilerplate as it  no longer works.

https://reactnative.dev/blog/2023/01/12/version-071#restoring-proptypes

> As part of this change, we are also removing the console filtering from LogBox.ignoreLog. This means logs that you have previously filtered with Logbox.ignoreLog will start appearing again in the console when you upgrade.
>
> This is expected, because it allows logs such as deprecation warnings to be found and fixed.

You can see the commit that did this here: facebook/react-native@fa2842d
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the now-ineffective LogBox.ignoreLogs() utility from the Ignite boilerplate, cleaning up unused code introduced for React Native 0.71 deprecation filtering.

  • Deleted the ignoreWarnings.ts utility file that called LogBox.ignoreLogs()
  • Removed its import from app.tsx

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
boilerplate/app/utils/ignoreWarnings.ts Deleted deprecated LogBox ignore-logs utility
boilerplate/app/app.tsx Removed import of the deleted ignoreWarnings module

Copy link
Contributor

@mazenchami mazenchami left a comment

Choose a reason for hiding this comment

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

whats the replacement now?! 🤔

@markrickert
Copy link
Member Author

whats the replacement now?! 🤔

As far as I understand it, it isn't possible to filter logbox warnings anymore.

@markrickert markrickert merged commit 709b991 into master May 21, 2025
3 checks passed
@markrickert markrickert deleted the mrickert/logbox branch May 21, 2025 17:16
@infinitered-circleci
Copy link
Contributor

🎉 This PR is included in version 10.5.0 🎉

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.

3 participants