Skip to content

Conversation

benmccann
Copy link
Member

We've hit this a couple times recently on svelte.dev. Hopefully better types will prevent us from making the same mistake

@benmccann benmccann added bug Something isn't working types / typescript p2-nice-to-have SvelteKit cannot be used by a small number of people, quality of life improvements, etc. labels Oct 23, 2023
@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2023

🦋 Changeset detected

Latest commit: 3eb227c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dummdidumm
Copy link
Member

Where did that happen to be wrong? RouteId is a generic parameter which is string|null by default.
We should be very careful here as this could be seen as a breaking change if this affects more than we want it to

@benmccann
Copy link
Member Author

Ah, I missed that RouteId itself could be null. Thanks for catching that. Let me check why we're not catching the potential error in svelte.dev

@benmccann benmccann closed this Oct 23, 2023
@benmccann benmccann deleted the null-route-id branch October 23, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p2-nice-to-have SvelteKit cannot be used by a small number of people, quality of life improvements, etc. types / typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants