Skip to content

useSuspense

Import

import { mix, useSuspense, useRecordFields, BoltElement } from 'c/bolt';

Usage

export default class myLwc extends mix(
[useSuspense, template, untilTemplate],
[useRecordFields, fields],
BoltElement
) { }

Methods

Constructor(template, untilTemplate?) : Constructor

NameTypeDescription
templateFunctionImported HTML template
untilTemplateFunctionImported HTML template to show before everything is loaded. Defaults to a spinner

Example

import template from './myLwc.html'
export default class myLwc extends mix(
[useSuspense, template],
[useRecordFields, fields],
BoltElement
) { }