I have an application in which I’m caching lots of data from a web API in different dictionaries when the patch starts. those dictionaries are
T is a custom
if I start manipulating the definition of one of those records (moving a pin, a pad, creating an operation), all my dictionaries are erased. sometimes, only the Dictionary containing instances of the Record I’m touching is erased, sometimes all of them.
I made a simple repro patch that shows this behavior, see this gif :
so here you can see that when I’m adding an operation to
Dictionary<String,T> is cleared. this behavior seems random because in some cases, just moving a pin or a pad clears the dict, sometimes only one dict is affected, sometimes all the dicts are.
i tried to travel back in time to see when this starts happening and noticed two things :
- this behavior does not seem to occur on 2021.3. tested 2021.3.0 and 2021.3.3 and did not see this issue. 2021.4.0 (which is the one on which this gif was recorded) shows this behavior
- when opening my test patch in 2021.3, some nodes have their input reset to default value. this is a screenshot from the
CacheStuffpatch on 2021.4.0 :
and the same portion opened on 2021.3 :
so here’s the patch, happy to provide more details or more tests if necessary.
Repro.vl (31.3 KB)
merci beaucoup beaucoup