-
Notifications
You must be signed in to change notification settings - Fork 617
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
Page Builder Elements - Compress Cached Data #4435
Conversation
/cypress |
Cypress E2E tests have been initiated (for more information, click here). ✨ |
/cypress |
Cypress E2E tests have been initiated (for more information, click here). ✨ |
/cypress_node_20 |
Cypress E2E tests have been initiated (for more information, click here). ✨ |
/cypress_node_20 |
Cypress E2E tests have been initiated (for more information, click here). ✨ |
1 similar comment
Cypress E2E tests have been initiated (for more information, click here). ✨ |
Changes
This PR addresses a couple of
useLoader
React hook-related issues.Mainly, when caching data into HTML (during page prerendering), the stringified JSON is now also encoded using
encodeURIComponent
. This makes it easier to avoid any potential serialization/deserliazation issues that might occur because of special characters (managed to experience this while manually testing).Extra Changes
I noticed that the
WebsiteLoaderCache
class was not instantiated at the proper place in thePageBuilderProviderHOC
component. This has now been fixed.I also had this change here, but realized it was causing some issues while E2E testing. B/c of lack of time, decided to not do this.
How Has This Been Tested?
Manually.
Documentation
Changelog.