graycoreio/daffodil

View on GitHub
libs/seo/router/src/providers/initializer.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { DaffSeoPageHookRouterEffects } from '../effects/page-hook.effects';

export const initializeRouterService = (effects: DaffSeoPageHookRouterEffects<any, any, any>) => () => {
  effects.getData$().subscribe();
  effects.emptyRestoreCache$().subscribe();
  effects.remove$().subscribe();
  effects.restore$().subscribe();
};