mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-24 14:26:23 +02:00
Prefetch user (#429)
This commit is contained in:
parent
37f777cace
commit
249376c43e
20 changed files with 220 additions and 181 deletions
|
@ -17,7 +17,7 @@ import NameInput from "../name-input";
|
|||
import TruncatedLinkify from "../poll/truncated-linkify";
|
||||
import UserAvatar from "../poll/user-avatar";
|
||||
import { usePoll } from "../poll-context";
|
||||
import { isUnclaimed, useSession } from "../session";
|
||||
import { isUnclaimed, useUser } from "../user-provider";
|
||||
|
||||
interface CommentForm {
|
||||
authorName: string;
|
||||
|
@ -68,7 +68,7 @@ const Discussion: React.VoidFunctionComponent = () => {
|
|||
},
|
||||
});
|
||||
|
||||
const session = useSession();
|
||||
const session = useUser();
|
||||
|
||||
const { register, reset, control, handleSubmit, formState } =
|
||||
useForm<CommentForm>({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue