Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SSR for Hooks based implementation #1148

Merged
merged 2 commits into from
Jul 2, 2019
Merged

Fix SSR for Hooks based implementation #1148

merged 2 commits into from
Jul 2, 2019

Conversation

kof
Copy link
Member

@kof kof commented Jul 2, 2019

  • registry now returns all sheets from .toString() by default, not only attached, since conditional rendering is not possible on the server
  • on the client you can pass now .toString({attached: true}) to get only attached sheets, we assume use cases doing that on the client are rare

@kof kof merged commit 08efcf5 into master Jul 2, 2019
HenriBeck pushed a commit that referenced this pull request Jul 6, 2019
* master: (50 commits)
  v10.0.0-alpha.22
  add react-dom dev dependenncy
  Fix SSR for Hooks based implementation (#1148)
  React-JSS id prop docs and improvements (#1147)
  v10.0.0-alpha.21
  fix changelog
  add support hint to the changelog (#1145)
  Sheets management for css() (#1137)
  Update css-vendor to 2.0.5 (#1142)
  more articles
  Small readability improvements (#1138)
  create sponsors.md (#1139)
  update karma settings
  Update css-vendor to 2.0.4 (#1136)
  v10.0.0-alpha.20
  fixing release
  v10.0.0-alpha.19
  fix lerna force-publish flag
  many more tests and some improvements to styped interface (#1133)
  v10.0.0-alpha.18
  ...

# Conflicts:
#	packages/react-jss/src/index.d.ts
HenriBeck pushed a commit that referenced this pull request Jul 7, 2019
* master:
  Use componentDidMount for WithStyles (#1157)
  Use mui like global ponyfill (#1153)
  HOC should not attach sheets until mount (#1149)
  v10.0.0-alpha.22
  add react-dom dev dependenncy
  Fix SSR for Hooks based implementation (#1148)
  React-JSS id prop docs and improvements (#1147)
  v10.0.0-alpha.21
  fix changelog
  add support hint to the changelog (#1145)
  Sheets management for css() (#1137)

# Conflicts:
#	packages/react-jss/.size-snapshot.json
bhupinderbola pushed a commit to bhupinderbola/jss that referenced this pull request Sep 17, 2019
* registry.toString returns all by default and accepts attached option

* changelog and docs
@iamstarkov iamstarkov deleted the hooks-ssr branch October 4, 2019 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants