Skip to content

v0.1.0

Choose a tag to compare

@min9nim min9nim released this 07 Nov 10:50
· 7 commits to master since this release

update interface of onError like below

onError={(e, history) => {
  if (
    e.message.startsWith('Cannot find module') &&
    window.location.pathname !== '/404'
  ) {
    history.push('/404')
    return
  }
  throw e
}}