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

implement react native compatible logger #781

Merged
merged 1 commit into from Dec 7, 2023

Conversation

hichemfantar
Copy link
Contributor

@hichemfantar hichemfantar commented Dec 6, 2023

The logger is an important feature of TRPC, especially in RN since the network inspector isn't that great so it's nice to have correct defaults. It can be disabled at anytime.
The loggerLink uses CSS mode by default which breaks some log messages in react native.
This PR addresses this issue.
Mentioned in trpc/trpc#2898
enabled check is taken from the official t3 stack template.

@hichemfantar hichemfantar marked this pull request as draft December 6, 2023 15:05
@hichemfantar hichemfantar marked this pull request as ready for review December 6, 2023 15:06
@juliusmarminge juliusmarminge merged commit c0968cc into t3-oss:main Dec 7, 2023
0 of 2 checks passed
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

2 participants