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

refactor: break up inventory data #1351

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

NigelBreslaw
Copy link
Owner

Before the different pages were all grouped together. For example weaponsInventory was a single object in the state. This meant if one item changed all 4 pages were updated.

The new system breaks the pages to each character (guardians and vault). It then does an eqaulity check to ensure only characters with changed data are updated.

Previously transfers could cause the UI to update and take up to 1 second to redraw everything. It seems the largest updates are now 250ms.

Before the different pages were all grouped together. For example weaponsInventory was a single object in the state. This meant if one item changed all 4 pages were updated.

The new system breaks the pages to each character (guardians and vault). It then does an eqaulity check to ensure only characters with changed data are updated.

Previously transfers could cause the UI to update and take up to 1 second to redraw everything. It seems the largest updates are now 250ms.
@NigelBreslaw NigelBreslaw merged commit 20a0a5b into main Apr 21, 2024
1 check passed
@NigelBreslaw NigelBreslaw deleted the refactor-break-up-inventory-data branch April 21, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant