Showing 1 of 4 total issues
Function IndexPage
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IndexPage: NextPageWithLayout = () => {
const utils = trpc.useContext();
const postsQuery = trpc.useQuery(['post.all']);
const addPost = trpc.useMutation('post.add', {
async onSuccess() {