selectCurrentUserRef
Home > @gooddata/sdk-ui-dashboard > selectCurrentUserRef
selectCurrentUserRef variable
This selector returns current logged in user ref.
Signature:
selectCurrentUserRef: import("@reduxjs/toolkit").OutputSelector<DashboardState, import("@gooddata/sdk-model").ObjRef, (res: import("@gooddata/sdk-model").IUser) => import("@gooddata/sdk-model").ObjRef>
Remarks
It is expected that the selector is called only after the permission state is correctly initialized. Invocations before initialization lead to invariant errors.