-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Plans: Move useStorageAddOns logic selection in pricing meta hook #96800
base: trunk
Are you sure you want to change the base?
Plans: Move useStorageAddOns logic selection in pricing meta hook #96800
Conversation
Link to live branch is being generated... |
a182e23
to
5d964b7
Compare
fc40618
to
8b6d87e
Compare
5d964b7
to
ce1f94a
Compare
29359ce
to
93c1053
Compare
286c4ab
to
03833bd
Compare
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~11 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~31943 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~3197 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
08923dc
to
570dd3b
Compare
4e4bd2f
to
9598f54
Compare
570dd3b
to
f04f685
Compare
@@ -49,7 +49,6 @@ export const UnwrappedUpgradePlan: React.FunctionComponent< UpgradePlanProps > = | |||
coupon: undefined, | |||
planSlugs: [ visiblePlan ], | |||
siteId: site.ID, | |||
storageAddOns: null, |
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.
NOTE:
Since the default value of reflectStorageSelectionInPlanPrices
in the usePricingMetaForGridPlans
hook is false
, explicitly setting a falsey
value is no longer necessary. It might, however, still be worthwhile to encourage this if we want other developers to be aware of the reflectStorageSelectionInPlanPrices
flag.
I'm inclined to remove the param, if folks feel otherwise I'm happy to add back an explicit reflectStorageSelectionInPlanPrices: false
argument.
This reverts commit 29abd6f.
…omparison Grid props
ab98e6b
to
ac2b991
Compare
The default value is `false` so these explicit declarations are unnecessary
e064cfa
to
18e4c82
Compare
18e4c82
to
d182f3f
Compare
175c9ae
to
0939ee5
Compare
82f95b3
to
acd3c2d
Compare
Related to #96520 (comment)
Proposed Changes
UsePricingMetaForGridPlans
hookstorageAddOns
param inUsePricingMetaForGridPlans
hook withreflectStorageSelectionInPlanPrices
Why are these changes being made?
Testing Instructions
/start/plans
usePricingMetaForGridPlans
is usedPre-merge Checklist