svelte-router
svelte-router copied to clipboard
I think we should rename createRouter
Right now "createRouter" when exist "create" function also createRouter contain proxy like methods to History.
In my opinion, if we rename the createRouter function, it will make a little breaking changes.
So, maybe we can set an alia for createRouter, and keep createRouter for a while.
I've started doing this:
import { createRouter as router } from 'svelte-router'
because calling createRouter.push() in my svelte components seems really odd.
I am worried about an activity of this project, also it does not have full feature set what needed for routing system. The solution from @TehShrike more acceptable but you should write more code.