Change representation of initial profile in session state
Use the dummy/blank profile object as the initial value of the `profile` field rather than `null`. This allows us to eliminate null-checks elsewhere while still enabling `hasFetchedProfile` to distinguish this profile from the profile fetched from the API.
Showing
Please register or sign in to comment