Skip to content

Releases: NSFI/react-router-manage

v2.0.4

16 Apr 05:51
c80c307

Choose a tag to compare

expose navigate method by call defineRouterConfig function

You may need to call route jumps outside of React applications
For example: Global registration of sub applications in qiankun.js

import { registerMicroApps } from 'qiankun';
import { defineRouterConfig, MRouter} from 'react-router-manage'

const routerConfig = defineRouterConfig({
  ...
}}

registerMicroApps(
  [
    {
      name: 'app1',
      entry: '//localhost:8080',
      container: '#container',
      activeRule: '/react',
      props: {
        navigate: (url) => {
           // This type of jump can also have routes guards, query and params extension,
           routerConfig.navigate(url);
        },
      },
    },
  ]
);

const App = () => {
  // After initialization here, we will assign the value of routerConfig.navigation
return <MRouter routerConfig={routerConfig} />
}

v2.0.3

12 Apr 15:00
51d2cc9

Choose a tag to compare

useBeforleave support beforeunload option
useBeforeLeave: (fn: BeforeLeaveI, options: {beforeunload?: ((event?: Event) => any)}) => void

release v2.0

26 Mar 13:22
6ae3263

Choose a tag to compare

@rrmc/antd-breadcrumbs:Automatically generate breadcrumbs by routes configuration

release v1.1.4

23 Oct 13:17

Choose a tag to compare

  • core add permissionMode parent and children supports permission
  • remove routesMap's paramsRoutesMap and flattenRoutes property
  • inputRoutes change add to MRouterContext

v1.1.4-beta.0

17 Oct 06:06

Choose a tag to compare

v1.1.4-beta.0 Pre-release
Pre-release
  • core add permissionMode parent and children supports permission

v1.1.4-beta.1

18 Oct 11:45

Choose a tag to compare

v1.1.4-beta.1 Pre-release
Pre-release
  • remove routesMap's paramsRoutesMap and flattenRoutess property

v1.1.3

08 Oct 14:20

Choose a tag to compare

v1.1.2

07 Oct 12:15

Choose a tag to compare

  • fix: children route path can configured empty
  • fix: when configuring sub routes, the path can be empty
  • fix: modify 'getCurrentRoute' get params route

v1.1.2-beta.0

27 Sep 08:08

Choose a tag to compare

v1.1.2-beta.0 Pre-release
Pre-release
  • When configuring sub routes, the path can be empty

v1.1.1

24 Sep 01:59
641eabd

Choose a tag to compare

  • Suport react-router v6.4 (v1.1.0), [#7]
  • Readme.md modify(v1.1.1), [#8]

Full Changelog