Skip to content

chore(examples): update rainbowkit and dynamic examples #360

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

Merged
merged 13 commits into from
Mar 31, 2025

Conversation

tomiiide
Copy link
Contributor

@tomiiide tomiiide commented Mar 6, 2025

Which Jira task is linked to this PR?

LF-8689

Why was it implemented this way?

  • An update to the rainbowkit example to show how to fetch available chains from LI.FI and sync wagmi configs to minimize wallet connection problems to devs following our example.
  • An update to the README of the dynamic example to explain the codebase better.

Visual showcase (Screenshots or Videos)

-N/A-

Checklist before requesting a review

  • I have performed a self-review of my code.
  • This pull request is focused and addresses a single problem.
  • If this PR modifies the Widget API, I have updated the documentation (or submitted a change request on GitBook).

@tomiiide tomiiide self-assigned this Mar 7, 2025
@tomiiide tomiiide requested a review from chybisov March 7, 2025 12:46
@tomiiide tomiiide marked this pull request as ready for review March 7, 2025 12:46
@chybisov chybisov changed the title feat(examples): update rainbowkit and dynamic examples chore(examples): update rainbowkit and dynamic examples Mar 13, 2025
Copy link
Member

@chybisov chybisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please upgrade Dynamic as part of this PR to v4?

@tomiiide tomiiide requested a review from chybisov March 13, 2025 22:24
Copy link
Member

@chybisov chybisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve conflicts 🙏

@@ -25,7 +25,8 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.23.10",
"wagmi": "^2.14.13"
"wagmi": "^2.14.13",
"vite-plugin-env-compatible": "^2.0.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? Other examples seems to work fine without it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dynamic sdk is trying to access an env variable this way, we need this to make vite compatible with process.env
Screenshot 2025-03-20 at 3 42 44 PM
Screenshot 2025-03-20 at 3 42 51 PM

@tomiiide tomiiide requested a review from chybisov March 21, 2025 18:11
return wallet.connector as SolanaWalletConnector
}
}

export const SolanaDynamicHandler: FC = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename SolanaDynamicHandler to DynamicSolanaProvider


handleConnectedSolanaWallet()
}, [solanaWallet, select, wallets])

return null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should return children here

@chybisov chybisov merged commit bebeb8b into main Mar 31, 2025
1 check passed
@chybisov chybisov deleted the LF-8689-update-example-dynamic-rainbowkit branch March 31, 2025 14:13
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