MCPcopy Index your code
hub / github.com/codecombat/codecombat / readActivityStatusCache

Function readActivityStatusCache

app/lib/user-utils.js:93–96  ·  view source on GitHub ↗
(userId)

Source from the content-addressed store, hash-verified

91}
92
93function readActivityStatusCache (userId) {
94 const key = getActivityStatusCacheKey(userId)
95 return localStorage.load(key, false) || localStorage.load(key) || {}
96}
97
98function activityFromRemote (remoteActivity) {
99 if (!remoteActivity?.first) { return null }

Callers 3

readActivityFromCacheFunction · 0.85
writeActivityToCacheFunction · 0.85
clearActivityStatusCacheFunction · 0.85

Calls 2

loadMethod · 0.45

Tested by

no test coverage detected