Narcoleptic Pasta Manufacturer

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

    2.11.3-alpha.1 • Public • Published

    @stringke/sigi-react-router

    React router integration for sigi framework

    Usage

    import { RouterModule } from '@stringke/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'))))
          }),
        )
      }
    }

    Install

    npm i @stringke/sigi-react-router

    Homepage

    sigi.how

    DownloadsWeekly Downloads

    3

    Version

    2.11.3-alpha.1

    License

    MIT

    Unpacked Size

    31.4 kB

    Total Files

    31

    Last publish

    Collaborators

    • stringke