Skip to content

Server Side Rendering  #6

@ghost

Description

Hello, I know this isn't a topic for this example really but I am having trouble with my basic isomorphic app. I am fetching some data from a postgres database and trying render it server side by setting the component's state to the data fetched. The problem however, is that when the client re-renders that component it does not have the same prop to render with and fails to render the same content therefore I am not gaining the benefits of a true isomorphic app. How do I pass the data fetched from the server as a prop to the client? How does data fetching work in an isomorphic app?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions