kitbagjs / router

A type safe router for vuejs
https://router.kitbag.dev
MIT License
173 stars 4 forks source link

Move default component logic into `RouterView` #235

Closed pleek91 closed 2 months ago

pleek91 commented 2 months ago

Description

We had logic in createRoute to add the RouterView component to any route that didn't have a component. But that would mean that matched and matches wouldn't directly reflect the users defined route options.

Moving this logic into RouterView where we already have logic for getting the correct component to mount for a match.

netlify[bot] commented 2 months ago

Deploy Preview for kitbag-router ready!

Name Link
Latest commit 63e22b47a2df37ea814c9ae2fcd13405b4ac3555
Latest deploy log https://app.netlify.com/sites/kitbag-router/deploys/66a3daac091a370008e8d15a
Deploy Preview https://deploy-preview-235--kitbag-router.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.