Closed bart112233 closed 1 year ago
Currently there no way. Needs to update the reactivity system to use Proxy
I've been doing a little research on proxy objects and it looks like it would require a significant change to how tinybind would be used. You'd need to return a proxy upon binding so that the user could make changes to that instead of the original object...
Are there plans to switch to a Proxy implementation in the near future?
Are there plans to switch to a Proxy implementation in the near future?
No.
In fact i believe, tinybind as a modernized, cleaned up rivets is done.
The problem is we reached the limits of the approach (a reactivity system using customized attributes). To overcome this problem would basically the need to recreate something like Vue
Would be interested in a more optimized performance. I'm not going to rule it out but perhaps as a plugin some how? TinyBind should remain light weight as possible for small projects though.
In example below changing any property of observed object ("cfg") does not initiate update computed value. Is any way to observe on all object properties? May be some like this:
<button rv-on-click="savecfg" rv-enabled="cfgchanged | watch cfg.* cfg_old">Save</button>
example: