-
Notifications
You must be signed in to change notification settings - Fork 2k
Update loading state of jetpack magic login in better way #102246
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
Update loading state of jetpack magic login in better way #102246
Conversation
… for jetpack magic login
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~18 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. 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. |
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.
Isn't this more or less the same approach like the isInitialMount
property was doing, but just done with a state variable?
It still feels like we're not addressing the root cause, but working around it.
Do we know the root cause and what else have we tried to resolve the issue?
The root cause is that any loading state variable that I could use to check to see if the form is ready defaults to I could look more into it to get a more complete understanding the flow and all the variations, however I am currently the only person on my team present during these hours of the day and with the onboarding releasing today in the Jetpack release I don't currently have time to do that. I will keep it on our things to look at for i2 of the onboarding flow so hopefully we can fix the root issue later. Thank you for taking a look at this |
Thanks @CodeyGuyDylan! Would be nice if we follow up on this at some point @Automattic/jetpack-martech |
I will look after this PR next week. |
@tyxla I updated the PR because there were some conflicts and I'd like to merge it tomorrow. Let me know if you have any concerns. |
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 |
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 resolved conflicts after merging trunk and tested it 👍
@grzegorz-cp if you read my feedback above, I did have some concerns which remained unaddressed: #102246 (comment) |
Thank you, we will be tracking it here |
…#102246) * Use state variable rather than class variable to update loading state for jetpack magic login * Enable magic link signup for testing branches --------- Co-authored-by: Grzegorz Chudzinski-Pawlowski <[email protected]>
…#102246) * Use state variable rather than class variable to update loading state for jetpack magic login * Enable magic link signup for testing branches --------- Co-authored-by: Grzegorz Chudzinski-Pawlowski <[email protected]>
Proposed Changes
Why are these changes being made?
componentDidMount
is not usually how these types of things are done in React.Testing Instructions
/wp-admin/admin.php?page=my-jetpack#/onboarding
on the siteloading-state.mov
Pre-merge Checklist