cssinjs/jss

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

Open

#1044 opened on Feb 23, 2019

View on GitHub
 (1 comment) (3 reactions) (0 assignees)JavaScript (7,000 stars) (434 forks)batch import
bugcomplexity:highhelp wantedimportant

Description

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

Contributor guide