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

"My Builds" page doesn't update when a build is updated #1

Open
Vailorium opened this issue Apr 11, 2023 · 0 comments
Open

"My Builds" page doesn't update when a build is updated #1

Vailorium opened this issue Apr 11, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Vailorium
Copy link
Owner

Description:
When updating a character build, the "My Builds" page doesn't reflect the changes made. The issue seems to be related to the "MyBuildsApi" redux API not reloading the store when the build is updated.

Steps to reproduce:

  1. Go to the "My Builds" page
  2. Click on "Edit" for a character (redirects to unit builder as intended)
  3. Make changes to the build
  4. Save the updated build
  5. Go back to the "My Builds" page
  6. The updated build is not reflected in the table

Expected behavior:
The "My Builds" page should show the updated build after it has been saved.

Possible solutions:

  • Find a way to invalidate the "MyBuildsApi" every time a build has been added or updated. This might have issues if the user has multiple browser tabs open.
  • Load the data every time the page is loaded without caching. This is not an ideal solution as it removes caching, but it does address the underlying issue.
@Vailorium Vailorium added the bug Something isn't working label Apr 11, 2023
@Vailorium Vailorium self-assigned this Apr 11, 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

1 participant