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

Added support for SSR on regions and refactored to remove handlers #429

Merged
merged 7 commits into from
Jul 13, 2018

Conversation

jcampalo
Copy link
Contributor

No description provided.

@jcampalo jcampalo requested a review from fahad19 July 11, 2018 13:35
@fahad19
Copy link
Member

fahad19 commented Jul 11, 2018

Refs #418

@fahad19
Copy link
Member

fahad19 commented Jul 11, 2018

it would be useful if we also add tests in frint-react-server, where we renderToString() an App with a Child App.

@fahad19
Copy link
Member

fahad19 commented Jul 11, 2018

top notch work, @jcampalo! 💖

many thanks for fixing this :D

please feel free to collaborate with @rbardini regarding the merge and release. he can sort out your npm access too if needed.

@@ -7,6 +7,7 @@ import { createApp } from 'frint';
import { observe, streamProps } from 'frint-react';

import renderToString from './renderToString';
import Region from '../../frint-react/src/components/Region';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you do npm run bootstrap from root, you can import modules directly from frint-react instead of relative path within the monorepo.

@fahad19
Copy link
Member

fahad19 commented Jul 11, 2018

Coverage dropped below 97%, that's why the build is failing: https://travis-ci.org/frintjs/frint/builds/402709904#L5487

},
"bugs": {
"url": "https://github.com/frintjs/frint/issues"
},
"nyc": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codecov
Copy link

codecov bot commented Jul 12, 2018

Codecov Report

Merging #429 into master will increase coverage by <.01%.
The diff coverage is 98.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #429      +/-   ##
==========================================
+ Coverage   97.74%   97.74%   +<.01%     
==========================================
  Files         111      112       +1     
  Lines        4251     4351     +100     
==========================================
+ Hits         4155     4253      +98     
- Misses         96       98       +2
Impacted Files Coverage Δ
packages/frint-react/src/components/Region.js 100% <100%> (ø) ⬆️
...ages/frint-react/src/handlers/ReactHandler.spec.js 100% <100%> (ø)
...ages/frint-react-server/src/renderToString.spec.js 97.22% <92.85%> (-2.78%) ⬇️
packages/frint-react/src/components/Region.spec.js 99.28% <95.23%> (-0.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a7205b...767bed6. Read the comment docs.

@jcampalo jcampalo merged commit bed931d into master Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants