forked from linode/manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move OBJ requests to OBJ Landing instead of App
App.tsx fetches `profile`, which is now used to determine if OBJ is enabled. We used to request buckets and clusters on initial App load, but now we need to wait for the profile response. I could have: 1) Implemented getProfile().then(() => getEverythingElse()) sort of logic. 2) Added CDU logic to App.tsx to check if profile has been loaded, THEN maybe do OBJ requests. 3) Move OBJ requests to ObjectStorageLanding. I opted for #3, because the first two options resulted in a performance hit for all users. We could move these requests back to App.tsx once OBJ is generally available.
- Loading branch information
1 parent
df40ff9
commit f4a6931
Showing
3 changed files
with
73 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters