1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/lib
HaNdTriX d1b67623f6 Throw error if getInitialProps is defined as as instance method (#4922)
* Throw error if getInitialProps is defined as as instance method

Omitting the static keyword happens pretty often. Therefore we should trigger a warning in devmode.

Closes: #4782

* Document getInitialProps error

* Add unit tests for loadGetInitialProps
2018-08-09 10:13:44 -07:00
..
router Run manual-bind-to-arrow codemod (#4906) 2018-08-06 20:20:01 -07:00
app.js Run method sorting codemod (#4909) 2018-08-06 20:53:06 -07:00
asset.js Handle empty assetPrefix scenario properly. (#3667) 2018-02-03 17:12:01 +01:00
constants.js Rename commons directory to runtime (#4853) 2018-07-27 19:29:25 +02:00
dynamic.js [WIP] Webpack 4, react-error-overlay, react-loadable (#4639) 2018-07-24 11:24:40 +02:00
error-debug.js [WIP] Webpack 4, react-error-overlay, react-loadable (#4639) 2018-07-24 11:24:40 +02:00
error.js Add title to default error page (#4383) 2018-05-25 13:35:59 +02:00
EventEmitter.js Make EventEmitter more Node-like (#4865) 2018-08-01 14:43:25 +02:00
head.js next/head allow duplicates if it has uniq keys (#4121) 2018-06-01 13:12:33 +02:00
link.js Make next/link async safe (#4911) 2018-08-06 22:44:18 -07:00
p-queue.js improve prefetch (#1161) 2017-02-16 00:59:42 +05:30
page-loader.js Compile pages to .next/static directory (#4828) 2018-07-25 13:45:42 +02:00
prefetch.js fix prefetch url (#1154) 2017-02-15 15:01:03 +01:00
promisify.js Move build directory outside of server folder (#4565) 2018-06-14 19:30:14 +02:00
runtime-config.js Exposing configuration to the server / client side (minor) (#3882) 2018-02-26 12:03:27 +01:00
shallow-equals.js Added linting using standard (#27) 2016-10-16 17:00:17 -07:00
side-effect.js Run method sorting codemod (#4909) 2018-08-06 20:53:06 -07:00
utils.js Throw error if getInitialProps is defined as as instance method (#4922) 2018-08-09 10:13:44 -07:00