kitbagjs / router

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

add `id` field to route #271

Closed stackoverfloweth closed 1 day ago

stackoverfloweth commented 1 day ago

This PR adds a new id: string field to Route type. This field will be useful internally, but is also part of the public API so hopefully useful to end users as well. The id should be unique among all routes created, regardless of if/which routers get created with the route.

Currently the value of the id is created with an auto-incrementing closure function so each id is just a number. I chose to use string for the type in case we decide to pivot to something more complex in the future.

netlify[bot] commented 1 day ago

Deploy Preview for kitbag-router ready!

Name Link
Latest commit e2ea5ebc475abc116363e2927dc9d7d993a338cc
Latest deploy log https://app.netlify.com/sites/kitbag-router/deploys/66ff50fcb657a50008f9de1c
Deploy Preview https://deploy-preview-271--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.