1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Update "url deprecated" error docs with note re: React Dev Tools (#4652)

Fixes #4284 

Made change as discussed in #4284
This commit is contained in:
Olivia Isaacs 2018-06-22 16:23:10 -05:00 committed by Tim Neutkens
parent 0989ecc223
commit 91900d1172

View file

@ -6,6 +6,8 @@ In versions prior to 6.x the `url` property got magically injected into every `P
The reason this is going away is that we want to make things very predictable and explicit. Having a magical url property coming out of nowhere doesn't aid that goal. The reason this is going away is that we want to make things very predictable and explicit. Having a magical url property coming out of nowhere doesn't aid that goal.
*Note:* In some cases using React Dev Tools may trigger this warning even if you do not reference `url` anywhere in your code. Try temporarily disabling the extension and see if the warning persists.
#### Possible Ways to Fix It #### Possible Ways to Fix It
https://github.com/zeit/next-codemod#url-to-withrouter https://github.com/zeit/next-codemod#url-to-withrouter