flush

Runs every queued observer and binding update now, instead of at the end of the microtask.

flush(): void
import { flush } from "https://cdn.jsdelivr.net/npm/@realmorg/realm@alpha/dist/index.js";

state.items.push(item);
flush();
// the DOM shows the new item here

Behaviour

Edit this page on GitHub · View as Markdown