Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(router-store): refactor router_store_module into separate files #1299

Conversation

koumatsumoto
Copy link
Contributor

@koumatsumoto koumatsumoto commented Aug 27, 2018

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #1298

What is the new behavior?

Divide code in router_store_module.ts into separate files.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Closes #1298

  • I alphabetized import paths.
  • I ran yarn run prettier just after yarn.

Some indentations are changed, but I used prettier@1.13.7 (latest for package.json).

@coveralls
Copy link

coveralls commented Aug 27, 2018

Coverage Status

Coverage increased (+0.006%) to 88.755% when pulling b13e48e on kouMatsumoto:refactor-router-store-module-into-separate-files into 5300e7d on ngrx:master.

@@ -709,7 +709,9 @@ describe('Store Devtools', () => {
it('should add pause action', () => {
const liftedState = fixture.getLiftedState();
expect(liftedState.nextActionId).toBe(4);
expect(liftedState.actionsById[3].action.type).toEqual('@ngrx/devtools/pause');
Copy link
Member

Choose a reason for hiding this comment

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

Revert these changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I reverted irrelevant files

@@ -123,12 +123,12 @@ function recomputeStates(
const entry: ComputedState = shouldSkip
? previousEntry
: computeNextEntry(
reducer,
Copy link
Member

Choose a reason for hiding this comment

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

Revert these changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brandonroberts
I created a pull request to fix the indentations.
#1301

@koumatsumoto koumatsumoto force-pushed the refactor-router-store-module-into-separate-files branch from 11ab77b to b4e71d7 Compare August 27, 2018 15:27
@koumatsumoto koumatsumoto force-pushed the refactor-router-store-module-into-separate-files branch from e824931 to b13e48e Compare August 27, 2018 15:30
@brandonroberts brandonroberts merged commit 17b8230 into ngrx:master Aug 27, 2018
@koumatsumoto koumatsumoto deleted the refactor-router-store-module-into-separate-files branch September 2, 2018 12:06
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.

Router Store: Refactor router_store_module into separate files
3 participants