Skip to content

Commit

Permalink
fmt + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Mar 4, 2025
1 parent 7deb8a5 commit e2748ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/expo/src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const useSignIn = () => {
const success = await signIn();
if (!success) return;

await queryClient.invalidateQueries(trpc.queryFilter());
await queryClient.invalidateQueries(trpc.pathFilter());
router.replace("/");
};
};
Expand All @@ -52,7 +52,7 @@ export const useSignOut = () => {
const res = await signOut.mutateAsync();
if (!res.success) return;
await deleteToken();
await queryClient.invalidateQueries(trpc.queryFilter());
await queryClient.invalidateQueries(trpc.pathFilter());
router.replace("/");
};
};
4 changes: 2 additions & 2 deletions apps/nextjs/src/app/_components/posts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function CreatePostForm() {
trpc.post.create.mutationOptions({
onSuccess: async () => {
form.reset();
await queryClient.invalidateQueries(trpc.post.queryFilter());
await queryClient.invalidateQueries(trpc.post.pathFilter());
},
onError: (err) => {
toast.error(
Expand Down Expand Up @@ -123,7 +123,7 @@ export function PostCard(props: {
const deletePost = useMutation(
trpc.post.delete.mutationOptions({
onSuccess: async () => {
await queryClient.invalidateQueries(trpc.post.queryFilter());
await queryClient.invalidateQueries(trpc.post.pathFilter());
},
onError: (err) => {
toast.error(
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const buttonVariants = cva(
variant: "primary",
size: "md",
},
}
},
);

interface ButtonProps
Expand All @@ -51,7 +51,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
{...props}
/>
);
}
},
);
Button.displayName = "Button";

Expand Down

0 comments on commit e2748ed

Please sign in to comment.