Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
fix: outlet auto-restore after visiting unknown route (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyohaplotinka committed Jan 23, 2021
1 parent 07b58f5 commit f67df03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/RouterOutlet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
}
firstRouteResolved = true
} else {
currentComponent = null
changeComponent(null, `${Date.now()}-nonexistent-route`)
console.warn('[Easyroute] Warning: route not found')
}
}
Expand Down

0 comments on commit f67df03

Please sign in to comment.