Hi everyone,
Did anyone faced an issue when variant is missing when you switch mode?
Let’s say I have a component with 2 variants: default, disabled. I link it’s instance to a string value with the same name. When I switch mode, it works perfectly fine, but in design system file only. Once published it stops working. As soon as I switch mode, instance disappears. Regenerate all instances (slow) command fixes the issue, but temporarily only until next launch. If another users opens the file, they don’t see a component if they don’t run a command or simply double click where instance suppose to be.
Also, the actual component has a nested component, maybe this is a reason why it doesn’t work? But if it’s so, it doesn’t make a lot of sense. I mean, I have a bunch of _base sub components or atoms, which I use in a complex components and not willing to sacrifice them.
Any suggestions will be helpful.