@sigi/react-router
TypeScript icon, indicating that this package has built-in type declarations

2.13.0 • Public • Published

@sigi/react-router

React router integration for sigi framework

Usage

import { RouterModule } from '@sigi/react-router'

@Module('App')
export class AppModule extends EffectModule<{}> {
  constructor(private readonly router: RouterModule) {
    super()
  }

  @Effect()
  getUser(payload$: Observable<void>) {
    return payload$.pipe(
      exhaustMap(() => {
        service.getUser().pipe(mergeMap((res) => of(this.getActions().getUserResponse(res), this.router.push('/home'))))
      }),
    )
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @sigi/react-router

Homepage

sigi.how

Weekly Downloads

2

Version

2.13.0

License

MIT

Unpacked Size

58.1 kB

Total Files

49

Last publish

Collaborators

  • broooooklyn
  • forehalo