[x] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no API changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
π Background
This PR directly extends off the previous PR, implementing additional state management fixes to selectedSatBundle.
context: when on multiple tabs (bundle data will overwrite the previous data on the old tab). This PR introduces a fix by removing state management for selectedSatBundle by supplying a output (txid+vout) to the rare-sats-bundle route, and calling react-query-hooks (with caching) to retrieve bundle data instead of relying on state management.
Issue Link: ENG-3193
Context Link (if applicable):
π Changes
remove selectedSatBundle state actions, reducers, and setters
updated all selectedSatBundle usage to call react-query hook which retrieves bundle details via the output (txid + vout) supplied in URL params
Impact:
fixes state management bugs when on multiple tabs when navigating to Rare Sats Bundle page from Collectibles screen, or when navigating to Rare Sats Bundle page from Confirm Ordinal Screen / Ordinal Detail Screen
indirectly improves SEO since URL contains data now
πΌ Screenshot / πΉ Video
Include screenshots or a video demonstrating the changes. This is especially helpful for UI changes.
β Review checklist
Please ensure the following are true before merging:
[ ] Code Style is consistent with the project guidelines.
[ ] Code is readable and well-commented.
[ ] No unnecessary or debugging code has been added.
[ ] Security considerations have been taken into account.
[ ] The change has been manually tested and works as expected.
[ ] Breaking changes and their impacts have been considered and documented.
[ ] Code does not introduce new technical debt or issues.
π PR Type
What kind of change does this PR introduce?
To be merged after #791.
π Background
This PR directly extends off the previous PR, implementing additional state management fixes to
selectedSatBundle
.context: when on multiple tabs (bundle data will overwrite the previous data on the old tab). This PR introduces a fix by removing state management for selectedSatBundle by supplying a
output (txid+vout)
to therare-sats-bundle
route, and calling react-query-hooks (with caching) to retrieve bundle data instead of relying on state management.Issue Link: ENG-3193 Context Link (if applicable):
π Changes
selectedSatBundle
state actions, reducers, and settersselectedSatBundle
usage to call react-query hook which retrieves bundle details via the output (txid + vout) supplied in URL paramsImpact:
πΌ Screenshot / πΉ Video
Include screenshots or a video demonstrating the changes. This is especially helpful for UI changes.
β Review checklist
Please ensure the following are true before merging: