Skip to content

Conversation

@cliffhall
Copy link
Member

@cliffhall cliffhall commented Oct 10, 2025

Description

  • In JsonView.tsx
    • add setCopied to dependencies of handleCopy useCallback
  • In useCopy.ts
    • add timeout to useEffect inside useCopy hook

Motivation and Context

Satisfy the linter.
Screenshot 2025-10-10 at 11 46 03 AM

How Has This Been Tested?

All local tests run. Tried using the copy function on a JSON view. It works and the data copied pasted into my editor as expected.

Breaking Changes

Nope.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

* In JsonView.tsx
  - add setCopied to dependencies of handleCopy useCallback
* In useCopy.ts
  - add timeout to useEffect inside useCopy hook
@olaservo olaservo merged commit f013291 into modelcontextprotocol:main Oct 11, 2025
5 checks passed
@cliffhall cliffhall deleted the fix-lint branch October 11, 2025 14:46
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