Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

batch function

Runs `fn` and notifies effects once at the end, not after each write.

View as Markdown
import { batch } from '@dioramajs/diorama/core'
function batch<T>(fn: () => T): T

Parameters

NameTypeDescription
fn() => T

Also exported from @dioramajs/core.

Defined in packages/core/src/kernel/signals.ts.