Skip to content

Server Side Rendering  #6

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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