Showing 1 of 4 total issues

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
    Severity
    Category
    Status
    Source
    Language