WIP PWA for Grain
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: refresh user avatar in header after profile save

+7
+3
src/components/pages/grain-edit-profile.js
··· 297 297 298 298 await client.mutate(UPDATE_PROFILE_MUTATION, { rkey: 'self', input }); 299 299 300 + // Refresh user data in header 301 + await auth.refreshUser(); 302 + 300 303 // Navigate back to settings 301 304 router.push('/settings'); 302 305
+4
src/services/auth.js
··· 83 83 getClient() { 84 84 return this.#client; 85 85 } 86 + 87 + async refreshUser() { 88 + await this.#loadUser(); 89 + } 86 90 } 87 91 88 92 // Preserve auth instance across HMR