[ ] Issue: Forking nested results
Expected behavior:
I want to be able to save the result of a nested producer for later use.
Observed behavior:
Nested result is unusable once revoked by the parent producer.
[ x] Occurs when using Proxies (use setUseProxies(true))
setUseProxies(false))Currently, if you want a nested produce call to actually produce a __copy__, you must pass state to the original function export __before__ calling produce (example). Otherwise, your nested producer will be mutating its parent's draft (example).
The behavior without original __will change__ in the future, but using original on the draft before calling produce will (probably) always be supported.
I want the nested producer to mutate it's parent's draft and not the original state:
@dfadev Oh, right. My bad!
That's not currently possible! 馃槥
I might be working on a solution sometime soon. You'll find out if this gets fixed! 馃憤
Ah, just realized what I'm working on won't directly address your issue.
Is there a reason you can't structure your code this way?
I think you're right, it's better to not nest if I need those states later on. Thanks!
@aleclarson Would you mind restoring the sandbox you're pointing to in your last comment? It seems helpful to people landing on this issue.