Feature Overview:
A suspense directive could be used to improve displaying async data. Suspense components / directives are commonplace in other frameworks.
Current Functionality:
There is no such functionality in Nørd
Suggested Enhancement:
Creating a suspend or suspended directive, that will take a Promise as argument and resolve a specified template on resolution, with an optional fallback template until the promise resolves.
Benefits of Enhancement:
This directive would greatly benefit async operations in Nørd
Feature Enhancement Description
Feature Overview: A suspense directive could be used to improve displaying async data. Suspense components / directives are commonplace in other frameworks.
Current Functionality: There is no such functionality in Nørd
Suggested Enhancement: Creating a
suspend
orsuspended
directive, that will take aPromise
as argument and resolve a specified template on resolution, with an optional fallback template until the promise resolves.Benefits of Enhancement: This directive would greatly benefit async operations in Nørd
Additional Information
See https://svelte.dev/docs/logic-blocks#await https://www.solidjs.com/tutorial/async_suspense
Possible Implementation 💡
Text
directive, similiar to thewhen
oreach
directivesAdditional Context