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
I have a resource implementation that passes the previous instance of a resource to the next instance of a resource, but the args are the same in both resources. My hunch is that there is either a bug in the HelperManager I've made, or I don't understand something about the HelperManager (maybe likely?).
createCache's previous instance's args have the same values as the current instance's args.
The only work around I can think of is to consume all args eagerly in createCache and set args to a vanilla object, rather than the tracked proxy / thunk that args currently are.
🤔 Expected Behavior
The previous instance's args are unchanged
🌍 Environment
Ember: - 3.25+
Node.js/npm: - n/a
OS: - n/a
Browser: - n/a
➕ Additional Context
The text was updated successfully, but these errors were encountered:
Is that same code used for the HelperManager? components aren't involved here.
But also, does that mean, no matter how many times I update args, all args are the same reference? If that's intended that's fine -- I can work around that :D
🐞 Describe the Bug
I have a resource implementation that passes the previous instance of a resource to the next instance of a resource, but the args are the same in both resources. My hunch is that there is either a bug in the HelperManager I've made, or I don't understand something about the HelperManager (maybe likely?).
🔬 Minimal Reproduction
Observe that:
😕 Actual Behavior
createCache's previous instance's args have the same values as the current instance's args.
The only work around I can think of is to consume all args eagerly in
createCache
and setargs
to a vanilla object, rather than the tracked proxy / thunk that args currently are.🤔 Expected Behavior
The previous instance's args are unchanged
🌍 Environment
➕ Additional Context
The text was updated successfully, but these errors were encountered: