Skip to content

ref(example): close Sidenav when logoutConfirmation is dispatched#2189

Merged
brandonroberts merged 19 commits into
ngrx:masterfrom
jordanpowell88:remove-dispatching-double-action
Nov 5, 2019
Merged

ref(example): close Sidenav when logoutConfirmation is dispatched#2189
brandonroberts merged 19 commits into
ngrx:masterfrom
jordanpowell88:remove-dispatching-double-action

Conversation

@jordanpowell88

Copy link
Copy Markdown
Contributor

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?

Closes #2186

What is the new behavior?

Adds Layout Effect to listen for logoutConfirmation and dispatches closeSidenav

Does this PR introduce a breaking change?

[ ] Yes
[X] No

Other information

@ngrxbot

ngrxbot commented Oct 30, 2019

Copy link
Copy Markdown
Collaborator

Preview docs changes for 90704a7 at https://previews.ngrx.io/pr2189-90704a7/

@alex-okrushko

Copy link
Copy Markdown
Member

Hi @jordanpowell88
Could you please squash your changes and adjust the title of PR to follow the guidelines?

@brandonroberts

brandonroberts commented Oct 30, 2019

Copy link
Copy Markdown
Member

Thanks for the PR @jordanpowell88. This change was meant to be simpler, with the logoutConfirmation action being used in the layout reducer to set showSidenav to false. No additional effects are needed.

@jordanpowell88

Copy link
Copy Markdown
Contributor Author

Sorry guys I can make those changes here shortly

@brandonroberts brandonroberts added the Needs Cleanup Review changes needed label Nov 1, 2019
@jordanpowell88 jordanpowell88 changed the title Remove dispatching double action ref(example): close Sidenav when logoutConfirmation is dispatched Nov 5, 2019
@brandonroberts brandonroberts merged commit 8a8dc83 into ngrx:master Nov 5, 2019
jordanpowell88 pushed a commit to jordanpowell88/platform that referenced this pull request Nov 8, 2019
refactor(effects): refactor types in effects, expose metadata key for createEffect

refactor(example): close sidenav when logoutConfirmation is dispatched (ngrx#2189)

Closes ngrx#2186

docs: remove github link from navigation (ngrx#2188)

Closes ngrx#2185

feat(schematics): add message prompts for individual schematics (ngrx#2143)

test(store): fix flaky integration test (ngrx#2209)
jordanpowell88 added a commit to jordanpowell88/platform that referenced this pull request Nov 14, 2019
@jordanpowell88 jordanpowell88 deleted the remove-dispatching-double-action branch November 16, 2019 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Cleanup Review changes needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example: Remove dispatching of 2 actions in AppComponent

4 participants