Thinking about routing with Vuex and the single state tree, it crossed my mind to handle the current route inside a Vuex state. I never used Redux before but I found a few projects that add routing capabilities to Redux. This makes total sense to me and a similar solution could fix the "Using Vuex with xxx router" problem for good.
@yyx990803 I guess it's more complicated that it sounds, but what do you think about this?
Actually working on that ;)
On Mon, Mar 7, 2016 at 8:06 AM Jona Goldman [email protected]
wrote:
Thinking about routing in Vuex and the _single state tree_, it makes
sense to handle the current route inside a state. I never used Redux before
but I found a few projects that add routing capabilities to Redux. This
makes total sense to me and can fix the "Using Vuex with xxx router"
problem for good.@yyx990803 https://github.com/yyx990803 what do you think about this?
—
Reply to this email directly or view it on GitHub
https://github.com/vuejs/vuex/issues/84.
Great idea, would love to see this!
Great! Really looking forward to it!
+1
+1
+1
@yyx990803 would u pls reveal some of ur thoughts on the vuex-and-route combination in advance? will vue-router be wholly replaced by vuex? or there will just be a bridge that connect vuex and vue-router? will vuex's 0.6.1 new API be affected by this?
nice!
@yyx990803 that was fast! do you even have time to sleep? :)
He didn't mention it anywhere yet.. so, "use it on your own risk" probably..
@azamat-sharapov I have been using it since it got released and it seems pretty stable, after all there is very little that can go wrong at 64 LOC.
Most helpful comment
Actually working on that ;)
On Mon, Mar 7, 2016 at 8:06 AM Jona Goldman [email protected]
wrote: