src/pages/index.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function IndexPage has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const IndexPage: NextPageWithLayout = () => {
  const utils = trpc.useContext();
  const postsQuery = trpc.useQuery(['post.all']);
  const addPost = trpc.useMutation('post.add', {
    async onSuccess() {
Severity: Major
Found in src/pages/index.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status