-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix use object metadata item #7297
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request simplifies object metadata handling, particularly during workspace creation, by removing unnecessary checks and providers.
- Removed loading state dependency in
ObjectMetadataItemsLoadEffect
, potentially leading to more frequent updates - Simplified
useObjectMetadataItem
hook by removing inactive workspace handling and mock data logic - Removed
ObjectMetadataItemsProvider
fromPageDecorator
, streamlining the component structure - These changes may affect application behavior during workspace creation or when dealing with inactive workspaces
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
objectMetadataItemFamilySelector({ | ||
objectName: objectNameSingular, | ||
objectNameType: 'singular', | ||
}), | ||
); | ||
|
||
let objectMetadataItems = useRecoilValue(objectMetadataItemsState); | ||
|
||
if (currentWorkspace?.activationStatus !== WorkspaceActivationStatus.Active) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't this break the skeleton?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bravo!
Fixes a bug which happened during workspace creation and remove duplicated code
Fixes a bug which happened during workspace creation and remove duplicated code