Skip to content

feat: Lifecycle Context + Provider - #166

Open
jbottigliero wants to merge 1 commit into
mainfrom
feat-lifecycle-context
Open

jbottigliero wants to merge 1 commit into
mainfrom
feat-lifecycle-context

Conversation

@jbottigliero

@jbottigliero jbottigliero commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

This is intended to replace the manual calls to methods like const { prePrompt } = usePromptLifecycle(); and avoid prop-drilling of error handlers in areas like <FileBrowserError> (<FlowsStartForm> => <GlobusCollectionWidget> => <FileSystem> => <FileBrowserError>).

With this, the implementation can be updated to something like...

    <GlobusAuthLifecycleProvider
      onBeforeRedirect={() => {
        // prePrompt / Store State
      }}
    >
      <FlowsStartFormWithStorage {...} />
    </GlobusAuthLifecycleProvider>

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.

1 participant