UsePromise

A hook to manage the state of a promise reactively in the absence of {#await}.

Component Source
npx jsrepo@1.x.x add hooks/use-promise.svelte

Installation

			jsrepo add hooks/use-clipboard.svelte
		

Usage

Set a default value for the version until it is streamed back from the server.