@vue-lynx-example/suspense
v0.2.9
Published
Vue-Lynx Suspense demo — async setup, defineAsyncComponent, error handling
Readme
Suspense Example
Tests Vue's <Suspense> API with vue-lynx.
Features Exercised
<Suspense>with#default/#fallbackslotsdefineAsyncComponentwith delayed / microtask resolution (triggers Suspense fallback)- Async
setup()via top-levelawaitin<script setup>(requireswithAsyncContext)
Note: This example avoids dynamic
import()code-splitting. Webpack async chunks rely onlynx.requireModuleAsync/lynx.loadLazyBundle, which are not available in Lynx Web Preview's iframe runtime. Use delayed promises (or a dedicated lazy-bundle setup) when you need Suspense without native chunk loading.
