add basic example to show connected address #721
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Context: If you directly use
useAccount
/ any other hooks on home you get the below error from Next which is not at all helpful and hard to debugNot so helpful error:
The solution to this is adding "use client" at the beginning of the file (this might be not all obvious for beginners)
This PR adds a default example of showing the connected address (this way we have "use client" at the top of file already and might save some users from pitfalls)
Please feel free to suggest any other place where we could add currently added it below SE-2 text :
Demo Video
Screen.Recording.2024-02-14.at.12.50.37.PM.mov