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

Some component forever in loading: true when navigating with react-router. Simple reproduction. #1397

Closed
ghost opened this issue Dec 9, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 9, 2017

Intended outcome:
Switch my Routes with react-router.

Actual outcome:
When I switch routes with react-router Link my components exported with export default graphql(CURRENT_USER_QUERY)(Menu); are forever in loading: true;

How to reproduce the issue:

I simply use:

export default graphql(CURRENT_USER_QUERY)(Menu);

on the Menu component and simply this code in App component:

    class App extends Component {
      render() {
        return (
          <div>
            {/* <Menu /> */}
            <Route component={Menu} />
            <Route exact path="/" component={Home} />
            <Route path="/login" component={Login} />
          </div>
        );
      }
    }

A bug?

Where am I wrong?

Version

@nfantone
Copy link

Possibly related to #1385?

@hwillson
Copy link
Member

Tracking in #1385; closing here. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants