MCPcopy Create free account
hub / github.com/carbonplan/maps / useLoadingContext

Function useLoadingContext

src/loading/context.js:140–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140export const useLoadingContext = () => {
141 const { loading, metadata, chunk } = useContext(LoadingContext)
142
143 return {
144 loading: loading.size > 0,
145 metadataLoading: metadata.size > 0,
146 chunkLoading: chunk.size > 0,
147 }
148}

Callers 1

LoadingUpdaterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected