value in new destination. What’s the right/new way to perform it now?
i
Ian Lake
05/20/2021, 1:06 PM
There's about 100 threads here that say you shouldn't be trying to do this pattern in the first place. We even specifically talk about how this is an anti-pattern and absolutely the wrong thing to do in our latest video:
https://youtu.be/0z_dwBGQQWQ▾
👍 1
p
pawegio
05/20/2021, 1:20 PM
Thank, I see the point now. I somehow missed those threads.
pawegio
05/20/2021, 1:23 PM
I thought that my case is exceptional as I don’t just select item from the list exposed in state, but now I understand that I need a cache.
j
Javier
05/20/2021, 1:40 PM
@Ian Lake what do you think about inline/value classes for this? The problem with them is they are not working with parcelize, but passing typed arguments, for example instead of passing an string passing a UserId is like how web works but even better because you have typed args so you can't fail passing an incorrect argument. Obviously the idea is passing one property arguments, not creating a huge class.
What problems can have this approach (if parcelize fix the issue and this can be done)?