Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

getDataFromTree breaks again with React v16.6 #2530

@ghost

Description

Intended outcome:

We updated to React v16.6 and saw that getDataFromTree is not hitting our routes behind @reach/router anymore. The router seems to be quite heavy at using the new Contect and forwardRef. Possibly something internally changed in React.

Actual outcome:

Data is generally being fetched for components outside of the routing root e.g. our navigation structure is loaded correctly via GraphQL. Previously we saw two of our resolvers doing requests (navigation + page content) we now see only one.

How to reproduce the issue:

In browser demonstration is actually impossible as this is an SSR issue.

I think easiest would be to use some Query inside of @reach/routers routing system.

Version

It works fine going back to React v16.5.2 BTW.

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