Skip to content

Commit 466e2cd

Browse files
timdeschryverbrandonroberts
authored andcommitted
refactor(RouterStore): normalize actions (#1302)
BREAKING CHANGE: Normalize router store actions to be consistent with the other modules BEFORE: - ROUTER_REQUEST - ROUTER_NAVIGATION - ROUTER_CANCEL - ROUTER_ERROR - ROUTER_NAVIGATED AFTER - @ngrx/router-store/request - @ngrx/router-store/navigation - @ngrx/router-store/cancel - @ngrx/router-store/error - @ngrx/router-store/navigated
1 parent bf038d3 commit 466e2cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/router-store/src/actions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
/**
1515
* An action dispatched when a router navigation request is fired.
1616
*/
17-
export const ROUTER_REQUEST = 'ROUTER_REQUEST';
17+
export const ROUTER_REQUEST = '@ngrx/router-store/request';
1818

1919
/**
2020
* Payload of ROUTER_REQUEST
@@ -34,7 +34,7 @@ export type RouterRequestAction = {
3434
/**
3535
* An action dispatched when the router navigates.
3636
*/
37-
export const ROUTER_NAVIGATION = 'ROUTER_NAVIGATION';
37+
export const ROUTER_NAVIGATION = '@ngrx/router-store/navigation';
3838

3939
/**
4040
* Payload of ROUTER_NAVIGATION.
@@ -57,7 +57,7 @@ export type RouterNavigationAction<
5757
/**
5858
* An action dispatched when the router cancels navigation.
5959
*/
60-
export const ROUTER_CANCEL = 'ROUTER_CANCEL';
60+
export const ROUTER_CANCEL = '@ngrx/router-store/cancel';
6161

6262
/**
6363
* Payload of ROUTER_CANCEL.
@@ -82,7 +82,7 @@ export type RouterCancelAction<
8282
/**
8383
* An action dispatched when the router errors.
8484
*/
85-
export const ROUTER_ERROR = 'ROUTE_ERROR';
85+
export const ROUTER_ERROR = '@ngrx/router-store/error';
8686

8787
/**
8888
* Payload of ROUTER_ERROR.
@@ -107,7 +107,7 @@ export type RouterErrorAction<
107107
/**
108108
* An action dispatched after navigation has ended and new route is active.
109109
*/
110-
export const ROUTER_NAVIGATED = 'ROUTER_NAVIGATED';
110+
export const ROUTER_NAVIGATED = '@ngrx/router-store/navigated';
111111

112112
/**
113113
* Payload of ROUTER_NAVIGATED.

0 commit comments

Comments
 (0)