Skip to content

docs: wrap Providers component in Suspense (sync with ui-demo) #1458

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marcinciarka
Copy link

@marcinciarka marcinciarka commented Mar 17, 2025

This pull request includes a small change to the quickstart docs. The change introduces the Suspense component from React to wrap the Providers component, mirroring what is in the ui-demo example.

Without it - with something more complicated than the example - the app config context was initialized many times resulting in hundreds of wallet connect calls.

Changes:


PR-Codex overview

This PR introduces the use of Suspense from React to wrap the QueryClientProvider and AlchemyAccountProvider components, enhancing the handling of asynchronous data fetching.

Detailed summary

  • Added Suspense import from react.
  • Wrapped the QueryClientProvider and AlchemyAccountProvider components with Suspense.
  • Maintained the structure of the Providers component while improving its capability to handle loading states.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Mar 17, 2025

@marcinciarka is attempting to deploy a commit to the Alchemy Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

graphite-app bot commented Mar 17, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@jakehobbs jakehobbs self-requested a review March 18, 2025 17:20
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.

2 participants