-
Notifications
You must be signed in to change notification settings - Fork 152
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
[hooks] Add cacheProvider
prop to <Provider />
#340
Conversation
See stories/useWriteContract for example.
🦋 Changeset detectedLatest commit: 09f633a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This is exactly what this project is needed, why still no progress it's nearly 2 weeks! |
LGTM, thanks @JamesCharlesworth! |
cacheProvider
prop to <Provider />
I'm not really sure tbh. Maybe look into some existing tests that we have? I've seen some people use |
@allcontributors please add @JamesCharlesworth for code |
I've put up a pull request to add @JamesCharlesworth! 🎉 |
See stories/useWriteContract for example.
Closes #310
Description
This exposes cacheProvider as a prop to
<Provider />
to allow persistence with Web3Modal.📝 Additional Information
I'd like to implement some tests for this but wasn't sure how to mock accounts and didn't see any setup for that. Any ideas or examples on the best pattern to do that?