sanity 6.4.0-next.18 → 6.4.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15005,6 +15005,7 @@ declare function useUser(userId: string): LoadingTuple<User | null | undefined>;
|
|
|
15005
15005
|
*
|
|
15006
15006
|
* if (currentUser) {
|
|
15007
15007
|
* console.log('Logged in as', currentUser.name)
|
|
15008
|
+
* const department = currentUser.attributes?.find((attr) => attr.key === 'department')
|
|
15008
15009
|
* }
|
|
15009
15010
|
* ```
|
|
15010
15011
|
*/
|