I'm working on a plugin switching symbols between different themes. I noticed that if I change the symbol from the right side panel, the new symbol is not imported again, it simply changes the properties of the initial symbol.
Assume these are all interchangeable states. They are created as individual symbols in a linked library.
My challenge is that the plugin will switch the originally imported symbol and not the new one changed from the right side panel. Below, I copied an imported symbol and changed its state.
Now if I log these 2 symbol's names, I get the same name, which doesn't reflect the above mentioned right side panel. Any change I can get the new symbol name too ?
I get this
I was expecting this