question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Beta.4-5 breaking changes & full wagmi support

See original GitHub issue

Hi everyone, we have released beta.4 which under the hood gets rid of our custom react hooks and controllers and instead provides full support for https://wagmi.sh

Wagmi is a great library that we were already using before, but were not able to provide full integration for until now.

React

Please follow updated documentation to see how to set up web3modal with wagmi.

Once integrated, you will need to replace all @web3modal/react hooks with ones from wagmi. See Wagmi Documentation for all available options. In general this should bring you way more stability and allow to use other wagmi compatible libraries like lens-use for example.

HTML / JS

Similar to how react no longer has hooks, vanilla no longer uses controllers. Instead you can import and use core functions like getAccount / watchAccount / getSigner etc. from @wagmi/core package. See updated example for new integration steps.

We are working with wagmi team to document @wagmi/core lib, but meanwhile feel free to ask questions here and use your editors intelisens / typescript autocompletion to see what is available.

Feel free to use this issue for further questions.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
0xAsimetriqcommented, Nov 16, 2022

Inconsistencies between versions will be solved in upcoming beta.5 ^

1reaction
0xAsimetriqcommented, Nov 16, 2022

@timefordroids nice, although, you can probably remove it now as core package is part of react one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

wagmi next feedback · Discussion #273 - GitHub
Finally moved my app to wagmi 0.3.0 it was smooth, it took around 5 hours for me to migrate cuz a lot of...
Read more >
Expo SDK 45 beta is now available | by Brent Vatne | Exposition
SDK 45 beta includes React Native 0.68.1 (the latest stable release at the time of writing). The full release notes won't be available...
Read more >
Migration Guide - wagmi
0.9.x Breaking changes ... Check out this guide for more info on ESM support and Frequently Asked Questions across various tools and setups....
Read more >
Future of Smart Contract Security Audits: REKT or WAGMI?
As Ethereum looks ahead to its transition to a fully to a proof-of-stake ... diversity support into the consensus level without requiring changing...
Read more >
jordan.eth (@ffloat) / Twitter
made that broke the ability for many of our users to use ... One And lots more, see the full change log and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found