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

Environment listing page is not performing refetch after creating a new environment #4124

Closed
Saranya-jena opened this issue Aug 11, 2023 · 1 comment · Fixed by #4182
Closed

Comments

@Saranya-jena
Copy link
Contributor

What happened:
After creating a new environment, the listing page is not showing the latest environment. Have to refresh the page to get the latest data.
What you expected to happen:
After environment is created listEnvironments API to get prefetched and update the page automatically upon successful creation of the env.

Where can this issue be corrected? (optional)

How to reproduce it (as minimally and precisely as possible):
Create a new environment and check after closing the modal, the latest is not listed, will have to refresh the page.
Anything else we need to know?:

@allgandalf
Copy link

just curious! Would putting the API call in a useEffect hook solve this bug?

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

Successfully merging a pull request may close this issue.

2 participants