Skip to content

fix: add missing useEffect import in README example#390

Open
0x4tl4nt wants to merge 1 commit intoAbstract-Foundation:mainfrom
0x4tl4nt:import-useEffect
Open

fix: add missing useEffect import in README example#390
0x4tl4nt wants to merge 1 commit intoAbstract-Foundation:mainfrom
0x4tl4nt:import-useEffect

Conversation

@0x4tl4nt
Copy link

@0x4tl4nt 0x4tl4nt commented Feb 14, 2026

Summary

The "Using the connector" example in packages/web3-react-agw/README.md was using useEffect without importing it from React.
This causes a ReferenceError when copying the code.

Changes

  • Added useEffect import to the example:
    import React, { useEffect } from 'react';

Reason

useEffect is a named export from React and must be explicitly imported.
This fixes the high-level issue reported in the review comment.


PR-Codex overview

This PR focuses on updating the README.md file in the packages/web3-react-agw directory to include useEffect from React, indicating a potential enhancement in the usage of React hooks.

Detailed summary

  • Added useEffect to the import statement from react in packages/web3-react-agw/README.md.

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

@changeset-bot
Copy link

changeset-bot bot commented Feb 14, 2026

⚠️ No Changeset found

Latest commit: b67d2f1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cursor
Copy link

cursor bot commented Feb 14, 2026

PR Summary

Low Risk
Docs-only change to a README example import; no runtime or library behavior changes.

Overview
Fixes the packages/web3-react-agw/README.md “Using the connector” example by importing useEffect from React (import React, { useEffect } from 'react';), preventing a copy/paste ReferenceError in the sample code.

Written by Cursor Bugbot for commit b67d2f1. This will update automatically on new commits. Configure here.

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.

1 participant