mlyn icon indicating copy to clipboard operation
mlyn copied to clipboard

support update within callback syntax

Open vaukalak opened this issue 3 years ago • 0 comments

Should support:

const array$ = createSubject([]);
array$(prev => [...prev, 1]);

Currently we can only do:

const array$ = createSubject([]);
array$([...array$(), 1]);

which is problematic when used in reactive scopes.

vaukalak avatar Dec 11 '21 12:12 vaukalak