mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-15 09:46:19 +01:00
🚸 Improve UX on create user page
This commit is contained in:
@@ -48,7 +48,12 @@ const CreateNewUserPage = () => {
|
||||
),
|
||||
});
|
||||
|
||||
const { mutateAsync, isSuccess } = api.user.createUser.useMutation();
|
||||
const context = api.useContext();
|
||||
const { mutateAsync, isSuccess } = api.user.createUser.useMutation({
|
||||
onSettled: () => {
|
||||
void context.user.getAll.invalidate();
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
<MainLayout>
|
||||
|
||||
Reference in New Issue
Block a user