[]previous and next page

wakeSuspended

Wakes every memo and effect that kept its value for a transition (it caught SUSPENSION): each runs again in the transition lane, so it reads the data that arrived.

Wakes every memo and effect that kept its value for a transition (it caught SUSPENSION): each runs again in the transition lane, so it reads the data that arrived. A Suspense boundary calls it when it releases its hold, before endHold. Does nothing before the transition machinery exists.

Import#

ts
import { wakeSuspended } from "@shadow-js/core/extend";

Signature#

ts
function wakeSuspended(): void

Examples#

ts
import { endHold, wakeSuspended } from "@shadow-js/core/extend";

export function onDataArrived(): void {
  wakeSuspended();
  endHold();
}