cssinjs / cssinjs/jss

[RFC] Remove support for creating rules without an stylesheet

Open
#1,076 5 comments 2 reactions 0 assignees View on GitHub
RFC
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

We currently have an api which allows creating rules without a stylesheet associated with them. I think this API isn't needed/used anymore and could be removed.

I believe this adds only more complexity to some of the code because we always need to consider that a rule might not have a StyleSheet.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. First locate the API that creates rules without an associated StyleSheet and trace its callers and rule-handling paths. Done means the unsupported API is removed and the code no longer needs to account for rules without a StyleSheet.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.