I have an issue that I am not sure how
# package-development
p
I have an issue that I am not sure how to fix. I have a custom workspace but sometimes I see this screen and sometimes I see the actual screen that I am expecting. I see the code passing through the
setRoutes
and the component gets loaded, but something is flaky in determining what screen should be shown https://cdn.discordapp.com/attachments/882984798719729704/1354898930042802336/image.png?ex=67eb94b5&is=67ea4335&hm=b369e6c141893f4fd6a7829d2ff3dc976d36ede2d4a9bca5601a6a841598262f&
n
Hi Patrick, which version are you on? 🙂 I can be related to the order of your routes. Is the code available somewhere? Otherwise you can maybe give us a sneak peak of the code for defining your routes?
Any idea @Niels Lyngsø? Been searching but can't figure out why this happens 😢
n
Hi Patrick, sorry for begin a slow responder. Please upgrade to latest just to make sure you are not hit by any trouble in an earlier version. There have been some trouble with late coming routes — actually some cases is first handled properly in 15.4 I had skim of your code, couldn't actually discover the problem immediately, I recommend debugging seeing how far things gets. Maybe it helps to inform that the 'not found' route's path is set to ´**´, so it might hint that the routes you defined did not give a match with your URL? — I do not think that the 'late coming routes' is a problem in regards to your Workspace Routes(routes.setRoutes), as the Not Found route are first added as part of your call to 'setRoutes'. But its worth noticing that there is two levels of Routers in play here. One for the Workspace and then one for the Workspace Editor(Handling the Workspace Views). So please investigate which of them if falling back to Not Found.