From 3fb0aae84ad6a7252984d1b2d07aaec7fcb54ac8 Mon Sep 17 00:00:00 2001 From: x-m-el <126079676+x-m-el@users.noreply.github.com> Date: Thu, 25 Sep 2025 12:07:37 +0200 Subject: [PATCH] add import to code example docs of get-promise-state Examples of other utilities show the import in the code example. This adds the codee line to import `getPromiseState` to the examples of getPromiseState. --- reactiveweb/src/get-promise-state.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactiveweb/src/get-promise-state.ts b/reactiveweb/src/get-promise-state.ts index 2c5ad81..a668378 100644 --- a/reactiveweb/src/get-promise-state.ts +++ b/reactiveweb/src/get-promise-state.ts @@ -135,6 +135,8 @@ export type GetPromiseStateInput = * We can use `getPromiseState` to dynamically load and render a component * * ```gjs + * import { getPromiseState } from 'reactiveweb/get-promise-state'; + * * let state = getPromiseState(() => import('./some-module/component')); * *