logto
logto copied to clipboard
refactor(experience): add global loading status on page redirect
Summary
Add a new useGlobalRedirect hook to handle all the sign-in/sign-up success redirections. Show the global loading status on redirect.
This will prevent user interaction from the sign-in page while the HTTP redirect request is still loading.
Testing
WIP
Checklist
- [ ]
.changeset - [ ] unit tests
- [ ] integration tests
- [ ] necessary TSDoc comments
COMPARE TO master
Total Size Diff :chart_with_upwards_trend: +2.71 KB
Diff by File
| Name | Diff |
|---|---|
| .changeset/friendly-chicken-pump.md | :chart_with_upwards_trend: +401 Bytes |
| packages/experience/src/containers/SocialLinkAccount/use-social-link-related-user.ts | :chart_with_upwards_trend: +109 Bytes |
| packages/experience/src/containers/VerificationCode/use-continue-flow-code-verification.ts | :chart_with_upwards_trend: +146 Bytes |
| packages/experience/src/containers/VerificationCode/use-register-flow-code-verification.ts | :chart_with_upwards_trend: +112 Bytes |
| packages/experience/src/containers/VerificationCode/use-sign-in-flow-code-verification.ts | :chart_with_upwards_trend: +112 Bytes |
| packages/experience/src/hooks/use-global-redirect-to.ts | :chart_with_upwards_trend: +745 Bytes |
| packages/experience/src/hooks/use-password-sign-in.ts | :chart_with_upwards_trend: +103 Bytes |
| packages/experience/src/hooks/use-send-mfa-payload.ts | :chart_with_upwards_trend: +103 Bytes |
| packages/experience/src/hooks/use-skip-mfa.ts | :chart_with_upwards_trend: +103 Bytes |
| packages/experience/src/hooks/use-social-link-account.ts | :chart_with_upwards_trend: +103 Bytes |
| packages/experience/src/hooks/use-social-register.ts | :chart_with_upwards_trend: +103 Bytes |
| packages/experience/src/pages/Consent/index.tsx | :chart_with_upwards_trend: +109 Bytes |
| packages/experience/src/pages/Continue/SetPassword/index.tsx | :chart_with_upwards_trend: +128 Bytes |
| packages/experience/src/pages/Continue/SetUsername/use-set-username.ts | :chart_with_upwards_trend: +109 Bytes |
| packages/experience/src/pages/RegisterPassword/index.tsx | :chart_with_upwards_trend: +127 Bytes |
| packages/experience/src/pages/SocialSignInWebCallback/use-single-sign-on-listener.ts | :chart_with_upwards_trend: +158 Bytes |
Hold this PR for a comprehensive testing.
This PR is stale because it has been open 10 for days with no activity. Remove stale label or comment or this will be closed in 5 days.
@gao-sun changeset included PTAL