ENVIRONMENT_LOADING_ATTRIBUTE

The attribute an environment sets on its root while what it draws is still on its way — a map's boundaries, a lazily loaded asset — so a host taking a picture of it waits: an exported figure or a printed page is shot once, and drawn before it arrives it would be shot without it. Set it only while waiting; an environment that has drawn everything it will draw clears it.

@internote/canvas-sdk/reactConstant
On this page
import { ENVIRONMENT_LOADING_ATTRIBUTE } from '@internote/canvas-sdk/react';

#Signature

string

#Example

<div className="my-env" {...{ [ENVIRONMENT_LOADING_ATTRIBUTE]: loading ? '' : undefined }}>

Declared in packages/canvas-sdk/src/react/environment-title.tsx:33.

Last updated