Skip to content

1.1.0

Compare
Choose a tag to compare
@nkzawa nkzawa released this 05 Nov 01:24

Lots of improvements and bugfixes courtesy of 7 contributors!

New

Accessing parsed url in getInitialProps

getInitialProps receives pathname and query in the argument now (#62).

export default class extends React.Component {
  static getInitialProps ({ pathname, query }) {
    ...
  }
} 

You can use them on both server and client. No manual parsing needed!

Bug fixes

  • next init: Exit non-zero when refusing to run in 'pages' dir [@timoxley]
  • fix hot-reloading doesn't work when compilation errors occur (#150) [@nkzawa]
  • Only update history state if url differs (#122) [@dstreet]
  • support hot-reloading error pages (#30) [@nkzawa]

Improvements