@nifrajs/island-trigger
v3.1.0
Published
Tiny, framework-neutral island trigger scheduler for nifra.
Readme
@nifrajs/island-trigger
Framework-neutral, browser-side trigger scheduling shared by Nifra’s two island runtimes:
@nifrajs/web/islands and @nifrajs/islets.
It has no DOM or UI-framework dependency. The public contract is the small scheduleTrigger
primitive with these strategies:
import { scheduleTrigger } from "@nifrajs/island-trigger"
const dispose = scheduleTrigger({ media: "(min-width: 768px)" }, () => {
// Activate the island.
})
dispose() // cancel before the trigger firesload, idle, visible, and media-query triggers are one-shot. Idle and visibility strategies
fall back safely when the browser capability is unavailable; malformed or oversized media queries
remain inert. The package only schedules the callback - each island runtime owns its own markers,
registry, signals, and framework integration.
For AI agents, see LLM.md. The wider reference is in
llms-full.txt.
