-
Notifications
You must be signed in to change notification settings - Fork 58
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
FED-1255 Add [Suspense] Component #820
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
/// | ||
/// See: <https://react.dev/reference/react/Suspense> | ||
UiFactory<SuspenseProps> Suspense = uiJsComponent( | ||
ReactJsComponentFactoryProxy(_jsSuspense), |
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.
Should I wait on Workiva/react-dart#357 and use react.Suspense
instead @greglittlefield-wf
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.
One more small thing, sorry, otherwise LGTM!
/// A props mixin for props specific to the [Suspense] component. | ||
@Props(keyNamespace: '') | ||
mixin SuspensePropsMixin on UiProps { | ||
/*ReactNode*/ dynamic fallback; |
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.
A doc comment here would be nice. You could steal the one from https://react.dev/reference/react/Suspense#props
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.
+1
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.
+1 refresh
Latest change only includes a generated file
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.
Spotted one thing in the newer commits, otherwise LGTM, and QAing looked good too!
Co-authored-by: Greg Littlefield <[email protected]>
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.
+10
@Workiva/release-management-p |
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.
+1 from RM
Motivation
RMUI has some "lazy" components coming in hot. We need Suspense in order to support their consumption.
Changes
Suspense
componentRelease Notes
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
QA Checklist
Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: