Skip to content

v1.0.0-beta.28

Compare
Choose a tag to compare
@wpdas wpdas released this 24 Apr 05:00
· 53 commits to main since this release

6b7bbf5

  • Added new alem.config.json options: createLoaderWidget, loadingComponentFile, loadingComponentName. These settings are used to tell the compiler whether a Widget Loader should be generated. This Loader is used to load the main Widget.

createLoaderWidget: boolean - Should the Widget Loader be created?
loadingComponentFile: string (optional) - Path to the component that will serve as loading while the main Widget content is loaded.
loadingComponentName: string (optional) - Exact name of the component being loaded via loadingComponentFile. For example, if the loading file has this structure:

const SuspenseLoading = () => <p>Loading...</p>;

So the name must be SuspenseLoading.

Config Example

"options": {
    "createLoaderWidget": true,
    "loadingComponentFile": "src/components/SuspenseLoading.tsx",
    "loadingComponentName": "SuspenseLoading"
  }