drupal-graphql / drupal-graphql/drupal-decoupled-app
Server Side Rendering
- Dominant language
- PHP
- Stars
- 310
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
If I fetch something from the GraphQL-Server I get from the Server-Side-Rendering `
```jsx
// home.jsx
...
import query from "./query.gql";
import withApollo from "~/shared/withApollo";
export const Home: StatelessComponent<{}> = ({ loading, entities }) => {
console.log('entities', entities)
if (loading) {
return
}
return (
);
};
const withQuery = graphql(query, {
props: ({ ownProps, data }) => ({
...ownProps,
entities: data.nodeQuery && data.nodeQuery.entities,
loading: data.loading
})
});
// export default Home;
export default compose(withApollo, withQuery)(Home);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.