Skip to content
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

Merged
merged 12 commits into from
May 3, 2023
Merged

FED-1255 Add [Suspense] Component #820

merged 12 commits into from
May 3, 2023

Conversation

kealjones-wk
Copy link
Contributor

@kealjones-wk kealjones-wk commented Apr 19, 2023

Motivation

RMUI has some "lazy" components coming in hot. We need Suspense in order to support their consumption.

Changes

  • Add Suspense component

Release Notes

Review

See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.

Please review:

QA Checklist

  • Tests were updated and provide good coverage of the changeset and other affected code
  • Manual testing was performed if needed

Merge Checklist

While we perform many automated checks before auto-merging, some manual checks are needed:

  • A Frontend Frameworks Design member has reviewed these changes
  • There are no unaddressed comments - this check can be automated if reviewers use the "Request Changes" feature
  • For release PRs - Version metadata in Rosie comment is correct

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@rmconsole7-wk rmconsole7-wk changed the title Add [Suspense] Component FED-1255 Add [Suspense] Component Apr 19, 2023
///
/// See: <https://react.dev/reference/react/Suspense>
UiFactory<SuspenseProps> Suspense = uiJsComponent(
ReactJsComponentFactoryProxy(_jsSuspense),
Copy link
Contributor Author

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

@kealjones-wk kealjones-wk requested review from a team and greglittlefield-wf and removed request for a team April 24, 2023 18:35
@kealjones-wk kealjones-wk marked this pull request as ready for review April 24, 2023 18:35
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a 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;
Copy link
Contributor

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

Copy link
Contributor

@hunterbreathat-wk hunterbreathat-wk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor

@hunterbreathat-wk hunterbreathat-wk left a 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

Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a 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]>
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+10

@greglittlefield-wf
Copy link
Contributor

@Workiva/release-management-p

@kealjones-wk kealjones-wk removed the Hold Hold merges label May 3, 2023
Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@rmconsole2-wf rmconsole2-wf merged commit 6e02efb into master May 3, 2023
@rmconsole2-wf rmconsole2-wf deleted the suspense-component branch May 3, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants