Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not found #14

Open
fabienjuif opened this issue May 23, 2018 · 1 comment
Open

not found #14

fabienjuif opened this issue May 23, 2018 · 1 comment
Milestone

Comments

@fabienjuif
Copy link
Member

  • We should param notFound wherever we want on route definitions
  • We can assign a code for the notFound, references the screen to print

Exemple

  '/': {
    code: 'main',
    '/login': { code: 'login' },
    '/profile': { code: 'profile' },
    '/search': { code: 'search' },
    '/projects': {
      code: 'projects',
      routeNotFound: 'projectNotFound',
      '/404': {
        code: 'projectNotFound',
      },
      '/:id': {
        code: 'project',
        '/setup': { code: 'setup' },
        '/summary': { code: 'summary' },
        '/measures': { code: 'measures' },
        '/symptoms': { code: 'symptoms' },
        '/diagnostics': { code: 'diagnostics' },
      },
    },
  },
}
@fabienjuif fabienjuif added this to the v2 milestone May 23, 2018
@fabienjuif fabienjuif modified the milestones: v2, v1 Oct 12, 2018
@fabienjuif
Copy link
Member Author

fabienjuif commented Oct 12, 2018

I am writing a first version @AFaugeras

image

export default forRoute.notFound()(Component)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant