MCPcopy
hub / github.com/streamlit/streamlit / getLoadingScreenType

Function getLoadingScreenType

frontend/lib/src/util/utils.ts:289–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 * waiting for the backend to send displayable protos.
288 */
289export function getLoadingScreenType(): LoadingScreenType {
290 const params = getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY)
291
292 return params.has(EMBED_HIDE_LOADING_SCREEN)
293 ? LoadingScreenType.NONE
294 : params.has(EMBED_SHOW_LOADING_SCREEN_V1)
295 ? LoadingScreenType.V1
296 : LoadingScreenType.V2
297}
298
299/** Return an info Element protobuf with the given text. */
300export function makeElementWithInfoText(text: string): Element {

Callers 2

emptyMethod · 0.90
utils.test.tsFile · 0.90

Calls 1

getEmbedUrlParamsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…