VulcanJS / Vulcan

🌋 A toolkit to quickly build apps with React, GraphQL & Meteor
http://vulcanjs.org
MIT License
7.98k stars 1.89k forks source link

Adding routes with no name leads to unexpected behaviour #2444

Open eric-burel opened 4 years ago

eric-burel commented 4 years ago

If I do this, I get 404 on the first 2 routes:

import MeetupCreation from '../components/MeetupCreation';
import MeetupList from '../components/MeetupList'
import MeetupAdminList from '../components/MeetupAdminList'

addRoute({ path: '/create', component: MeetupCreation })
addRoute({ path: '/list', component: MeetupList })
addRoute({ path: '/admin/list', component: MeetupAdminList })

Only the last route is created.

Edit: the issue is the lack of a name, it should raise a warning or use the "/path" as the default name

eric-burel commented 4 years ago

Might need to merge https://github.com/VulcanJS/Vulcan/pull/2389 before we fix this

kajaveaniruddha commented 10 months ago

Hey, I would like to work on this issue , is it still open?