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

Merged

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

🦋 Changeset detected

Latest commit: ad5806c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
react-router Patch
@react-router/architect Patch
@react-router/cloudflare Patch
@react-router/dev Patch
react-router-dom Patch
@react-router/express Patch
@react-router/node Patch
@react-router/serve Patch
@react-router/fs-routes Patch
@react-router/remix-routes-option-adapter Patch
create-react-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another 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! 🥳

@brophdawg11
Copy link
Contributor

Thanks! Would you mind adding a changeset visa pnpm changeset so we can get this merged?

@ThomasTheTitan
Copy link
Author

@brophdawg11 done! Let me know if I messed something up

Copy link
Contributor

@brophdawg11 brophdawg11 left a comment

Choose a reason for hiding this comment

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

Thanks!

@brophdawg11 brophdawg11 dismissed MichaelDeBoey’s stale review April 30, 2025 14:06

Changes have been addressed

@brophdawg11 brophdawg11 merged commit 3d675a9 into remix-run:dev Apr 30, 2025
5 checks passed
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.

3 participants