cssinjs/jss

[react-jss] each re-render of component appends new rule with media query

Open

#1044 aperta il 23 feb 2019

Vedi su GitHub
 (1 commento) (3 reazioni) (0 assegnatari)JavaScript (434 fork)batch import
bugcomplexity:highhelp wantedimportant

Metriche repository

Star
 (7000 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Expected behavior: There's computed style with media query (&:hover etc..)

Describe the bug: Each re-render of component appends new rule with media query

Codesandbox link: https://codesandbox.io/s/7yxv3r5jp1 (see to console)

Versions (please complete the following information):

  • jss: 10.0.0-alpha.10
  • Browser chrome
  • OS macOS

Guida contributor