Skip to content

Improve configuration switch handling and dynamic routing WalletPage.js#41

Open
cryptoryda wants to merge 1 commit into
Eclipse-Laboratories-Inc:mainfrom
cryptoryda:wallet
Open

Improve configuration switch handling and dynamic routing WalletPage.js#41
cryptoryda wants to merge 1 commit into
Eclipse-Laboratories-Inc:mainfrom
cryptoryda:wallet

Conversation

@cryptoryda

Copy link
Copy Markdown

i Improved configuration switch handling and dynamic routing in WalletPage.js

added error handling and loading states to better inform users when configuration switches fail to load.

memoized the tab configuration using useMemo for improved performance.

updated the routes dynamically based on the fetched switches, showing NFT and swap components when active or displaying a fallback UnavailablePage otherwise.

these changes enhance resilience, performance, and user feedback in the WalletPage component.

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