-
Notifications
You must be signed in to change notification settings - Fork 0
Labels
Priority: MediumMedium priority. Upvote to request a higher priority. Downvote to attempt to lower priority.Medium priority. Upvote to request a higher priority. Downvote to attempt to lower priority.
Description
This router is not compatible with Sveltekit. You should not be needing a router for Sveltekit projects since Sveltekit does path routing by default and does so very nicely.
But what if you want to add hash routing on top of Sveltekit's path routing? That's a valid case.
Specs
Initially, I'm thinking a specialized sveltekitInit() function should be created to be used instead of the regular init() function. This function should:
- Limit the number of options. Only the hash mode should be configurable. Full mode cannot be an option; implicit mode is hardcoded to
'hash'. - Provide a location object that uses Sveltekit compliant URL-related info and actions.
Location Details
- URL is fed from page.url from $app/state.
- Navigation uses
goto,pushStateorreplaceStatefrom $app/navigation.
Sub-issues
Metadata
Metadata
Assignees
Labels
Priority: MediumMedium priority. Upvote to request a higher priority. Downvote to attempt to lower priority.Medium priority. Upvote to request a higher priority. Downvote to attempt to lower priority.