realar-project / realar

5 kB Advanced state manager for React
MIT License
44 stars 0 forks source link

low: think about "in one transaction" feature #69

Closed betula closed 3 years ago

betula commented 3 years ago

const s = signal();
const v = value();

on(s, (s_v) => v.val += s_v);
on(() => [s,v], console.log);

on.transaction(s, (s_v) => v.val += s_v); // used one transaction with changed s

// Think about
betula commented 3 years ago

Added to "the stream of conciseness 0.7+ roadmap"