svelte-router icon indicating copy to clipboard operation
svelte-router copied to clipboard

I think we should rename createRouter

Open stalkerg opened this issue 8 years ago • 3 comments

Right now "createRouter" when exist "create" function also createRouter contain proxy like methods to History.

stalkerg avatar Mar 01 '18 09:03 stalkerg

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.

jikkai avatar Mar 01 '18 10:03 jikkai

I've started doing this:

import { createRouter as router } from 'svelte-router'

because calling createRouter.push() in my svelte components seems really odd.

antony avatar Apr 08 '18 10:04 antony

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.

stalkerg avatar Apr 10 '18 01:04 stalkerg