You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this was made to be used with morphable, but running into some issues with wrapping proxies in proxies.
immutator should wrap morphable (an observable), but morphable internally uses raw to render the initial element that is morphed on state changes. this allows elements to be composed without parent elements reacting to state changes that only child elements depend on.
however, using raw also means that the raw object is vulnerable to mutation within this initial render — also in onload and onunload, where it's probably even more tempting to mutate directly.
i wonder if an ignore function can be introduced into observer-util that would allow me to avoid exposing the raw object.
The text was updated successfully, but these errors were encountered:
this was made to be used with morphable, but running into some issues with wrapping proxies in proxies.
immutator should wrap morphable (an observable), but morphable internally uses
raw
to render the initial element that is morphed on state changes. this allows elements to be composed without parent elements reacting to state changes that only child elements depend on.however, using
raw
also means that the raw object is vulnerable to mutation within this initial render — also in onload and onunload, where it's probably even more tempting to mutate directly.i wonder if an ignore function can be introduced into observer-util that would allow me to avoid exposing the raw object.
The text was updated successfully, but these errors were encountered: