这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@strongSoda
Copy link
Contributor

Affected components

  • Console

@strongSoda strongSoda requested a review from rikinsk-zz as a code owner May 30, 2019 12:58
@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Hey @strongSoda, thanks for your PR!

One of my human friends will review this PR and get back to you as soon as possible. 🕐

Stay awesome! 😎

@netlify
Copy link

netlify bot commented May 30, 2019

Deploy preview for hasura-docs ready!

Built with commit be6c40d

https://deploy-preview-2304--hasura-docs.netlify.com

@strongSoda strongSoda added c/console Related to console k/bug Something isn't working labels May 30, 2019
@hasura-bot
Copy link
Contributor

Review app for commit bcb6bac deployed to Heroku: https://hge-ci-pull-2304.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2304-bcb6bac5

Copy link

@rikinsk-zz rikinsk-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@strongSoda using window.location.replace causes a hard refresh to happen (refetch of all state data again). To avoid that we use the <Link> react component to do routing.
Instead

  • create a func called resetState which does this.setState({ hasError: false, info: null, error: null })
  • add an onClick={resetState} to the Link
  • replace other places in the file that are doing the same thing with resetState (line 25)

@strongSoda
Copy link
Contributor Author

strongSoda commented May 30, 2019

doing this renders the 404 page after clicking on home link.

@strongSoda strongSoda requested a review from rikinsk-zz May 31, 2019 12:10
@hasura-bot
Copy link
Contributor

Review app for commit 089c882 deployed to Heroku: https://hge-ci-pull-2304.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2304-089c8829

@rikinsk-zz rikinsk-zz merged commit 17b5dc0 into hasura:master May 31, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-2304.herokuapp.com is deleted

@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Whoa! 🎉 🎉 💃

GIF

Awesome work @strongSoda! 💪 🏆 All of us at Hasura ❤️ what you did.

Thanks again 🤗

@strongSoda strongSoda deleted the homeError branch June 3, 2019 06:39
polRk pushed a commit to polRk/graphql-engine that referenced this pull request Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/console Related to console k/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants