Loading Data from the Server
Let's stop hardcoding our initial state and fetch it from the server instead.
In this lesson you will learn:
- Set up basic data fetching
- Leverage the
afterCreatelifecycle hook to automatically run any setup logic a model instance needs to do after creation
Please take a moment to tell your friends: