MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / getDisplayName

Function getDisplayName

src/Data/UserData.js:304–318  ·  view source on GitHub ↗
(isRefresh = false, {priority = FOREGROUND_PRIORITY} = {})

Source from the content-addressed store, hash-verified

302}
303
304export async function getDisplayName(isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) {
305 return loadCachedValue({
306 key: "displayName",
307 legacyFields: ["name"],
308 forceRefresh: isRefresh,
309 priority,
310 load: async () => {
311 const displayName = await apiJson(GET_DISPLAY_NAME, {
312 allowUnauthorized: true,
313 fetchPriority: priority,
314 });
315 return displayName.name;
316 },
317 });
318}
319
320export async function setDisplayName(displayName) {
321 if (!displayName) {

Callers 15

loaderFunction · 0.90
loaderFunction · 0.90
loaderFunction · 0.90
actionFunction · 0.90
actionFunction · 0.90
loaderFunction · 0.90
actionFunction · 0.90
loaderFunction · 0.90
isAuthApplicantFunction · 0.90
prefetchProfilesFunction · 0.90

Calls 2

loadCachedValueFunction · 0.90
apiJsonFunction · 0.90

Tested by

no test coverage detected