currentUserProfileProvider top-level property

  1. @ProviderFor.new(CurrentUserProfile)
  2. @JsonPersist.new()
CurrentUserProfileProvider currentUserProfileProvider
final

The signed-in user's own profile.

Kept alive for the session and persisted on native so the profile can load from cache on cold start. Web fetches it again after a browser reload. The network result remains authoritative on every platform.

Every mutation below re-reads the profile from the server rather than patching state locally. That is not caution for its own sake: the server derives fields the client does not send - it stamps avatarUrl itself on upload, complete with the cache-buster - so a locally patched copy would diverge from what every other client sees.

Implementation

@ProviderFor(CurrentUserProfile)
@JsonPersist()
final currentUserProfileProvider = CurrentUserProfileProvider._();