Skip to content

fix(RouterStore): support objects for options of StoreRouterConnectingModule#575

Merged
brandonroberts merged 1 commit intongrx:masterfrom
fredgate:fix-routerstore-config
Nov 18, 2017
Merged

fix(RouterStore): support objects for options of StoreRouterConnectingModule#575
brandonroberts merged 1 commit intongrx:masterfrom
fredgate:fix-routerstore-config

Conversation

@fredgate
Copy link
Contributor

Fix issue #573

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 92.613% when pulling 8495fc7 on fredgate:fix-routerstore-config into 6ed92b0 on ngrx:master.

@@ -125,10 +125,12 @@ export const ROUTER_CONFIG = new InjectionToken(
export const DEFAULT_ROUTER_FEATURENAME = 'routerReducer';

export function _createDefaultRouterConfig(config: any): StoreRouterConfig {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change config argument type to StoreRouterConfig | StoreRouterConfigFunction

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree


export function _createDefaultRouterConfig(config: any): StoreRouterConfig {
let _config = {};
let _config: any;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change _config to StoreRouterConfig

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense

@brandonroberts
Copy link
Member

Thanks @fredgate for the PR! I left you some feedback.

@fredgate fredgate force-pushed the fix-routerstore-config branch from 8495fc7 to 70043e1 Compare November 17, 2017 21:17
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 92.613% when pulling 70043e1 on fredgate:fix-routerstore-config into d26cfe8 on ngrx:master.

@brandonroberts brandonroberts merged commit 4125914 into ngrx:master Nov 18, 2017
@brandonroberts
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants