cssinjs / cssinjs/styled-jss

SSR Support

Open
#65 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
214
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Not exactly the same issue as #62 , so I created a new issue.

I am also having difficulty with getting SSR to work with styled-jss. Using `createStyled`, I create a new `styled` using an existing jss instance. Though the styles render client-side, they aren't making it into the registry, and therefore not getting injected into the critical CSS. Is the jss instance supposed to handle the insertion of styles into the registry? Or this is something styled-jss is supposed to handle that hasn't been implemented yet?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing SSR with createStyled and an existing JSS instance, then trace why client-rendered styles are not entering the registry or critical CSS. Done means the styles are registered and included in the generated critical CSS during SSR, with the behavior verified in an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
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.