-
Notifications
You must be signed in to change notification settings - Fork 63
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: removes useUI()
dependents sections from LazyLoadingSection
#2602
fix: removes useUI()
dependents sections from LazyLoadingSection
#2602
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
useUI()
dependents sections from LazyLoadingSection
@eduardoformiga . Some js files are loaded when I open the cart sidebar. is it normal? Example: |
yes, that's because some internal components are being loaded dynamically. |
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.
I've tried via preview link and LGTM.
At least I haven't faced any issue when testing the CartSidebar and RegionModal.
What's the purpose of this pull request?
This removes the logic that dynamically loads the sections that depend on the
useUI()
hook:CartSidebar
andRegionModal
. We decided to try to load them at another moment (//TODO: create a task for it) instead of on click.How to test it?
Try to load the respective sections
CartSidebar
andRegionModal
using the preview link.You can see that both sections are being loaded in the initial loading now. Instead of loading after clicking on the respective buttons that trigger the sections.
Starters Deploy Preview