Skip to content

Apollo example error #896

@abelovic

Description

@abelovic

When I first run this example I can get it to work but if refresh the page I get the following error:

TypeError: Cannot assign to read only property '1' of [object Array]
at Array.sort (native)
at PostList (C:\next.js\examples\with-apollo\components\PostList.js:20:27)
at walkTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:76:15)
at walkTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:80:7)
at getQueriesFromTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:102:3)
at getDataFromTree (C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:123:17)
at C:\next.js\examples\with-apollo\node_modules\react-apollo\src\server.ts:131:28
at process._tickCallback (node.js:385:9)

It also works if I change the file and re-save it. If I refresh after that it stops working again.

I have set my graph.cool end point in initClient.js. Is there something I am not doing correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions