stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
https://stitches.dev
MIT License
7.73k stars 249 forks source link

Styles doesn't apply for targeting a react component #1090

Open ipf-hj opened 1 year ago

ipf-hj commented 1 year ago

Bug report

Describe the bug

Hi I'm developing on a dev server. There's a component like this and the styles won't apply unless you save again on VSCode. ` {name}

const A = styled('h3', { // ...

marginRight: '0.8rem',

},

}) `

Screenshots

Before save image

After save image

ipf-hj commented 1 year ago

@hadihallak Here is the link https://codesandbox.io/s/aged-water-8t7r7u?file=/src/App.js

I'd like to get the 'Tag' component and give margin around it

It only shows the margin when I changed the style and save it On VSCode but not at the first render.