Skip to content

feat(react-router): only render dev warnings in dev #13461

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

ThomasTheTitan
Copy link

@ThomasTheTitan ThomasTheTitan commented Apr 24, 2025

I noticed that the 💿 Hey developer 👋 warning for missing hydrate fallback was rendering on my prod application in addition to my dev environment. From looking in the code base, it looks like there is some precedent for only rendering these in dev. This PR tries to consolidate that and also updates the message to point at RR docs instead of Remix docs.

There are a ton of ways to do this, so curious for feedback! For example, I wasn't quite sure where the best place to consolidate ENABLE_DEV_WARNINGS was.

@ThomasTheTitan ThomasTheTitan changed the title Only render dev warnings in dev, update docs they link to Only render dev warnings in dev Apr 24, 2025
@MichaelDeBoey MichaelDeBoey changed the title Only render dev warnings in dev feat(react-router): only render dev warnings in dev Apr 24, 2025
Copy link

changeset-bot bot commented Apr 25, 2025

⚠️ No Changeset found

Latest commit: dbbbf4d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Apr 25, 2025

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

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