remix-run / react-router

Declarative routing for React
https://reactrouter.com
MIT License
53.2k stars 10.32k forks source link

[Bug]: Too many v7 warnings #12250

Open ebnazmul opened 2 weeks ago

ebnazmul commented 2 weeks ago

What version of React Router are you using?

react-router-dom@6.28.0

Steps to Reproduce

Screenshot 2024-11-08 105940

I tried

Screenshot 2024-11-08 110115

Expected Behavior

No warning

Actual Behavior

Too much warnings

Eghizio commented 1 week ago

@ebnazmul see https://github.com/remix-run/react-router/issues/12245

timdorr commented 1 week ago

For the moment, the best course of action is to downgrade to 6.27.0 and lock your version to that release. The only things added in 6.28.0 are these warnings, so you're not missing any features or fixes by downgrading to that version.

jbblanchet commented 1 week ago

I know it's not explicit here, but it would be nice if explicitly opting out the flags (i.e. v7_skipActionErrorRevalidation: false) would stop the warning. It's my way of saying "I got the message, I created a ticket to follow up on this, please stop warning me."

dd-jonas commented 1 week ago

I don't see the reason for adding these warnings. This seems to belong in a changelog, not in the console. None of these feature flags have any impact on my application. Why should I enable them all explicitly, only to remove them again in v7?