LauraXia123 opened a new pull request, #12292:
URL: https://github.com/apache/gravitino/pull/12292
### What changes were proposed in this pull request?
1. page.js — Add resetActivatedDetails() for the fileset branch (consistent
with the table branch), clearing stale activatedDetails before loading new data.
2. FilesetDetailsPage.js — Guard ListFiles rendering with
!store.activatedDetailsLoading to prevent mounting before new details are ready.
3. ListFiles.js — Three fixes:
- Render-time reset: Detect filesetIdentity change via useRef and reset
sub_path/currentLocation immediately during render (before useEffects run).
- Stale props detection: Track which fileset the storageLocations prop
belongs to. Block API calls and show loading spinner when storageLocations is
stale.
- currentLocation sync: Derive currentLocation from
storageLocations/defaultLocationName when it's undefined or invalid, instead of
blindly trusting the previous value.
### Why are the changes needed?
Fix: #12289
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
munaully
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]