Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play well with morphable #2

Open
lukeburns opened this issue Feb 25, 2018 · 0 comments
Open

play well with morphable #2

lukeburns opened this issue Feb 25, 2018 · 0 comments

Comments

@lukeburns
Copy link
Owner

lukeburns commented Feb 25, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant