#minimalist #component #reactivity #poll #reactive #game-engine #batching

poll-reactive

A minimalistic poll-based reactive library

1 unstable release

0.1.0 Mar 31, 2024

#1254 in Game dev

MIT license

15KB
409 lines

poll-reactive

A minimalistic poll-based reactive library.

Instead of push-based reactivity, it opts for pull-based reactivity, i.e., components have to poll. This mainly make sense for e.g. game engines where components have a "run once per frame" method anyway. In return it comes with a number of simplifications like avoiding the need for 'static closures, and a "natural" batching.

No runtime deps