Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dashboard not automatically refreshed #383

Open
forrestbao opened this issue Jul 21, 2023 · 5 comments
Open

dashboard not automatically refreshed #383

forrestbao opened this issue Jul 21, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@forrestbao
Copy link
Collaborator

If I create a new repo, and click "Codepod" in the breadcrumbs to navigate back to the dashboard, the new repo will not appear on my dashboard until I manually fresh (via the browser) the dashboard page. I am not sure whether we do not have autorefresh or the auto-refresh frequency is too low. But at least every time I access it.

@lihebi
Copy link
Collaborator

lihebi commented Jul 21, 2023

Yes, I'm aware of this. This is a bug somewhere in React re-rendering logic. It should be instantly refreshed.

@sumtsui
Copy link
Contributor

sumtsui commented Jul 23, 2023

i can take a look

@senwang86
Copy link
Collaborator

PR #422 should fix the issue

@lihebi lihebi reopened this Aug 4, 2023
@lihebi
Copy link
Collaborator

lihebi commented Aug 4, 2023

#422 doesn't fix this issue. (And #422 introduced a regression, fixed in #425).

This issue is weird, it works well (to refresh the dashboard) in the local development env, but doesn't work on the production server.

@lihebi
Copy link
Collaborator

lihebi commented Aug 4, 2023

Possible solutions:

  1. use the full query {query: ..., variables: ...} instead of the string "GetDashboardRepos" in the refetchQueries option. Ref: refetchQueries not working when using string array after mutation apollographql/apollo-client#5419 (comment)
  2. update GraphQL cache manually instead of relying on refetchQueries, similar to what Haochen did in chore: enhance delete repo UX #364 (comment)

@lihebi lihebi added db bug Something isn't working and removed db labels Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants