0.6.1 • Published 5 years ago

react-vue-router-sync v0.6.1

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

npm node license

npm install --save react-vue-router-sync

The react-vue-router-sync is used to sync between router status for micro frontend apps.

import sync from 'react-vue-router-sync';
import { createBrowserHistory } from 'history';
import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);
const vueRouter = new VueRouter({
  // ...
});

const history = createBrowserHistory({
  // ...
});

const unsync = sync(history, vueRouter);
history.push('/foo/bar');

console.log(vueRouter.currentRoute.fullPath); //  => /foo/bar
unsync(); // dispose sync
0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago