Skip to content

LoadingState

Defined in: packages/engine/src/stores/loading.ts:7

Property Type Description
loading boolean Whether three’s loaders have a file in flight, as the loop’s last frame read them. True until the first frame, and again once the loop unmounts. Inside the canvas, read this rather than drei’s useProgress: a model starts loading in the render that draws it, so a useProgress reader would update in the middle of that render.
mountedScene string | null The active scene once everything under its boundary has committed, so the entities it spawns have spawned. Null until the first scene commits; a scene that suspends on a switch leaves the last name.