Put in order · Angular course · Module 10: State Management
Action flow in a Signals store
Order the stages of the loadSamurai() action in a Signals-based store (top to bottom):
Items to put in order
- In next: save the data and set loading = false
- Set loading = true via state.update()
- computed() automatically recomputes the selectors
- Send an http.get() request to the API
You can check the correct answer by solving this task in the CodeWorlds game.