rsnext/errors/reserved-page-prop.md
JJ Kasper 395714a475
Update url prop handling for pages with new data methods (#10653)
* Make sure to show error when url prop is returned for a page

* Update test and handle undefined pageProps

* Handle empty props

* Apply suggestions from code review

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>

* Update tests

* Update to not add url prop for SSG/SSP pages

* Update errsh for reserved prop

* Update errsh wording some more

* Update tests and to warn instead of error

* Update reserved prop warning

* Include page in url prop warning

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-26 13:26:55 -05:00

289 B

Reserved Page Prop

Why This Error Occurred

In a page's getInitialProps a reserved prop was returned. Currently the only reserved page prop is url for legacy reasons.

Possible Ways to Fix It

Change the name of the prop returned from getInitialProps to any other name.