Skip to content

FEATURE: Sveltekit compatibility #8

@webJose

Description

@webJose

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:

  1. Limit the number of options. Only the hash mode should be configurable. Full mode cannot be an option; implicit mode is hardcoded to 'hash'.
  2. Provide a location object that uses Sveltekit compliant URL-related info and actions.

Location Details

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MediumMedium priority. Upvote to request a higher priority. Downvote to attempt to lower priority.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions