Inside a workflow block configurator you don’t add your own
<React.Suspense>: the editor provides the boundary and shows the block as loading while it suspends. See Loading data.Example
load-widgets.server.ts
load-sprockets.server.ts
Parameters
It takes an object mapping astring key to an async function. If the function requires parameters,
the key should map to an array with the async function as the first element and the parameters as
the subsequent elements.
Returns
An object containing:values: an object mapping from thestringkeys provided to whatever type that key’s async function returnsinvalidate: a(key: string) => voidfunction to call to invalidate individual cached values, called with the key you want to invalidate