Chapter 2 of 10
Get started
Companion lab · Read full chapter in the guide →
Boot a page with renderDevice(), confirm the graph reached the engine with didEmit, and recover from lost first commits on hub URLs.
In this lab you will
- Wrap the graph in
renderDevice()and callensureEmit() - Schedule poke retries after load
- Use
WaxNative.keepAlive()on Project-style URLs - Share one
buildOut(wax)for plugin and browser preview
Minimal pattern
function renderDevice() {
const tone = wax.mul(wax.cycle(440), 0.15);
wax.render(tone, tone);
if (!wax.didEmit() && wax.reemitLast) wax.reemitLast("retry");
}
Try it
Example code
Loading…