You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add account data revalidation after undelegation (#488)
* feat: add account data revalidation after undelegation
Enhances the Undelegate component by introducing a revalidation mechanism for account data using SWR. After a successful undelegation, the account data is refreshed after a 15-second delay to ensure the UI reflects the latest state.
* feat: use hybrid approach to data fetching, where static props are a fallback
- Removed unused SWR configuration in Undelegate component.
- Updated AccountLayout to fetch fresh account data client-side, prioritizing it over static props.
- Adjusted logic to ensure the UI reflects the latest account state by using the newly fetched data for various components.
0 commit comments