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

Update - State Management #958

Open
10 of 19 tasks
AbdellaToronto opened this issue Apr 8, 2021 · 0 comments
Open
10 of 19 tasks

Update - State Management #958

AbdellaToronto opened this issue Apr 8, 2021 · 0 comments
Labels
Spring 2021 Work Update - 2021 Updates current content in book during the 2021 update, for example, on out of date info

Comments

@AbdellaToronto
Copy link
Collaborator

AbdellaToronto commented Apr 8, 2021

State Management

  • Ng2-redux not too popular nowadays

Redux and @ngrx

Adding @ngrx to your Project

  • Update install command

Reading your Application State Using Selectors

  • Can store.select still accept an array?

Actions

  • Looks like the Action interface has changed
  • Remove the payload property in the example
  • In createAction, update function signature
  • Update example to use props property

Modifying your Application State…

  • Is the Redux thunk analogy still correct?
  • Should the actions be created beforehand?

Reducers and Pure Functions

  • Check the formatting of the reducer functional signature (spans 2 lines)

Reducers as State Management

  • Simple Reducer -> should it use the createReducer function?

Configuring your Application

  • StoreModule.forRoot instead of StoreModule.provideStore

Side Effects

  • Update @ngrx/effects links
  • Example should use the createEffect() method
  • Configuration should use EffectsModule.forRoot([...])

Getting More From Redux and @ngrx

@AbdellaToronto AbdellaToronto added Spring 2021 Work Update - 2021 Updates current content in book during the 2021 update, for example, on out of date info labels Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spring 2021 Work Update - 2021 Updates current content in book during the 2021 update, for example, on out of date info
Projects
None yet
Development

No branches or pull requests

1 participant