Code that works in the API Explorer doesn't work in own codebase

I have added a toggle variant to a component, and verified that it works using the API Explorer. In my app, when I use the exact code the API Explorer shows to toggle the variant, the variant is not displayed. What am I missing?

Hello @distracting_moose, can you PM me the code you’re using to toggle the variant and the project ID please?

In preparation to share the project with you, I edited some unrelated stuff in Plasmic Studio and did a sync, and it started working. When it wasn’t working, I noticed in the React debugger that the variant prop was being toggled, but the variant styles weren’t being applied. If that gives you an “aha”, let me know - otherwise, problem solved :slightly_smiling_face: