FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactor FlowMetaProvider to defer metadata fetch until Asgardeo initialization is complete by brionmario · Pull Request #464 · asgardeo/javascript · GitHub

Refactor FlowMetaProvider to defer metadata fetch until Asgardeo initialization is complete - #464

Merged
brionmario merged 2 commits into
asgardeo:mainfrom
brionmario:refactor-thunder-flows
Apr 17, 2026
Merged

Refactor FlowMetaProvider to defer metadata fetch until Asgardeo initialization is complete#464
brionmario merged 2 commits into
asgardeo:mainfrom
brionmario:refactor-thunder-flows

Conversation

brionmario commented Apr 17, 2026
edited
Loading

Copy link
Copy Markdown
Member

Purpose

This pull request updates the FlowMetaProvider component in FlowMetaProvider.tsx to improve how it handles the initialization state of the Asgardeo authentication context. The main goal is to ensure that metadata fetching waits until Asgardeo is fully initialized, preventing unnecessary UI flickers and supporting flows that may not have an applicationId.

Improvements to initialization and metadata fetching logic:

  • The isInitialized property from useAsgardeo is now used in addition to applicationId to determine when to fetch flow metadata, ensuring that fetching only occurs after Asgardeo is ready. This prevents design flicker and supports flows without an applicationId (e.g., AcceptInvite). [1] [2]
  • The effect dependencies for fetching metadata have been updated to include isInitialized, ensuring the effect reacts to changes in initialization state.

Related Issues

  • N/A

Related PRs

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

Copy link
Copy Markdown

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

brionmario merged commit b522571 into asgardeo:main Apr 17, 2026
6 of 8 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL