forwardemail / forwardemail/superagent

superagent call in server side not happening

Open
#800 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

we are creating react flux app with superagent for api calls.
As per server side loading , all the html with api data rendered in component should be called from
server end only.
we are calling superagent from actioncreater.
as we are using react router and in server.js using below code

React.renderToString(
React.createElement(Router, i));

is it clear enough that we are rendering from server side on first call and other calls handled from client side.

But as all the html should call from server end on first call why my api xhr call in component showing in firebug NET call? and also api result is rendered client side. so not sure all the result on first call coming from server.
React-router is a module that can run both on the server and in the client also.
so does this called as server side rendering?
or anything need to done at superagent call?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.