Await the promise on temp.new to resolve. If timed out, return the old data on temp.old.
the payload with an appropriate message
The template function that helps to load data from cache/remote
Example usage:
the type of the object to construct
the JSON-serializable representation of the object T
the key in the localStorage
the async function used to request data from remote, if local data expires or does not exist
function to construct the actual object T from its JSON-serializable representation T_JSON
Try to load semester data from localStorage
. If data expires/does not exist, fetch a fresh
set of data from Lou's list and save to localStorage
.
storage key: 1198data
the semester to load data
force update
Try to load semester list from localStorage. If it expires or does not exist, load a fresh semester list from Lou's list and store it in localStorage.
storage key: "semesters"
Generated using TypeDoc
The module responsible for loading data required by plannable, including but not limited to semester list, semester course data, building data, etc.