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
{{ message }}
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
Enhancement
If we leverage Proxies, I think we can just about track the appropriate paths and changes to allow the user to simply do object and array accessing and setting rather than having to use the get helper and returning the associated operations.
This would work via the state object being passed in being Proxy wrapped and everything off it. Every time a set is called we'd create the appropriate operation.
A few caveats:
Won't work in IE11 (so we need to support the existing way)
The functions no longer take an input and return an output (would have to think about the testing implications)
Performance?
The text was updated successfully, but these errors were encountered:
Enhancement
If we leverage Proxies, I think we can just about track the appropriate paths and changes to allow the user to simply do object and array accessing and setting rather than having to use the
get
helper and returning the associated operations.The following would go from:
to:
This would work via the
state
object being passed in being Proxy wrapped and everything off it. Every time a set is called we'd create the appropriate operation.A few caveats:
The text was updated successfully, but these errors were encountered: