-
Notifications
You must be signed in to change notification settings - Fork 437
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
🧹 Replace loadable
package with react's built-in lazy and add top-level Suspense boundary
#6052
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
loadable
package with react's built-in lazyloadable
package with react's built-in lazy and add top-level Suspense boundary
loadable
package with react's built-in lazy and add top-level Suspense boundaryloadable
package with react's built-in lazy and add top-level Suspense boundary
LGTM |
👋 Hi, @rithviknishad, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
@rithviknishad We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌. |
WHAT
🤖 Generated by Copilot at e5f406c
This pull request replaces the
@loadable/component
library with the nativeReact.lazy
function for code splitting and lazy loading components in various files of the project. This improves the performance, maintainability, and TypeScript compatibility of the code. It also imports the correct types fromreact
for some components' props insrc/CAREUI/display
.Proposed Changes
loadable
package and use the the built-inReact.lazy
instead #6051@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at e5f406c
@loadable/component
and@types/loadable__component
dependencies and useReact.lazy
instead for code splitting and lazy loading components (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)FC
andlazy
fromreact
and useFC
type forApp
component insrc/App.tsx
(link)HTMLAttributes
andReactNode
fromreact
and use them for props types insrc/CAREUI/display/Card.tsx
(link)ReactNode
fromreact
and use it forprefix
prop type insrc/CAREUI/display/RecordMeta.tsx
(link)lazy
fromreact
in various files and use it for loading components asynchronously (link, link, link, link, link, link)loadable
imports from various files (link, link, link, link, link, link, link, link, link, link, link)SyntheticEvent
fromreact
and use it for event parameter type inhandleSubmit
functions insrc/Components/Facility/AddBedForm.tsx
andsrc/Components/Facility/AddLocationForm.tsx
(link, link, link, link)RefObject
andcreateRef
fromreact
and use them for creating refs for form fields insrc/Components/Facility/AssetCreate.tsx
(link, link)