Skip to content

scribe: fix some lint warnings#261

Merged
irahopkinson merged 1 commit intomainfrom
fix-react-deps
Mar 14, 2025
Merged

scribe: fix some lint warnings#261
irahopkinson merged 1 commit intomainfrom
fix-react-deps

Conversation

@irahopkinson
Copy link
Copy Markdown
Collaborator

  • React Hook dependency warnings
  • wrap handleInputSubmit in useCallback and define it before it is used
  • also de-nest else-if
  • also don't need both ? and | undefined

Note

There are still more warnings but you might need to look at those.

@irahopkinson irahopkinson requested a review from samueljd March 13, 2025 22:33
@codesandbox
Copy link
Copy Markdown

codesandbox bot commented Mar 13, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Mar 13, 2025

View your CI Pipeline Execution ↗ for commit 20ea904.

Command Status Duration Result
nx run-many -t build ✅ Succeeded 38s View ↗
nx run-many -t test ✅ Succeeded 28s View ↗
nx run-many -t typecheck ✅ Succeeded 14s View ↗
nx run-many -t lint ✅ Succeeded 6s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-13 23:57:55 UTC

@irahopkinson irahopkinson marked this pull request as draft March 13, 2025 22:36
@irahopkinson irahopkinson marked this pull request as ready for review March 13, 2025 22:59
- React Hook dependency warnings
- wrap `handleInputSubmit` in useCallback and define it before it is used
- also de-nest else-if
- also don't need both `?` and `| undefined`
Copy link
Copy Markdown
Contributor

@samueljd samueljd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, This doesn't break anything for Scribe.

@irahopkinson irahopkinson merged commit d7d68dc into main Mar 14, 2025
5 checks passed
@irahopkinson irahopkinson deleted the fix-react-deps branch March 14, 2025 20:59
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