Skip to content
On this page

Loading Delay

By setting options.loadingDelay, you can delay the time when loading turns to true, effectively prevent UI flashing.

Code demonstration

Basic usage

If you hit run quickly, the data without loadingDelay will flash.

API

PropertyDescriptionTypeDefault
loadingDelaySet the delay time for loading to become truenumber | Ref<number>0

Remark

options.loadingDelay supports dynamic changes.

Source

SourceDocsDemo