mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-18 23:45:26 +02:00
current stand
This commit is contained in:
parent
7125c5f40d
commit
a5043675b5
@ -136,6 +136,7 @@ export default function AuthContextProvider({children}: AuthContextProviderProps
|
||||
refetchOnWindowFocus: "always",
|
||||
refetchOnReconnect: "always",
|
||||
retry: 2,
|
||||
enabled: user !== null,
|
||||
})
|
||||
|
||||
const value = useMemo<AuthContextType>(
|
||||
|
@ -8,6 +8,7 @@ export const DEFAULT_ALIAS_NOTE: AliasNote = {
|
||||
version: "1.0",
|
||||
data: {
|
||||
createdAt: null,
|
||||
creationContext: "web",
|
||||
personalNotes: "",
|
||||
websites: [],
|
||||
},
|
||||
|
@ -54,10 +54,10 @@ export function CreateAliasButton(): ReactElement {
|
||||
showSuccess(t("relations.alias.mutations.success.aliasCreation"))
|
||||
|
||||
await queryClient.cancelQueries({
|
||||
queryKey: ["get_aliases", ""],
|
||||
queryKey: ["get_aliases"],
|
||||
})
|
||||
|
||||
queryClient.setQueryData<PaginationResult<AliasList>>(["get_aliases", ""], old => {
|
||||
queryClient.setQueryData<PaginationResult<AliasList>>(["get_aliases"], old => {
|
||||
if (old) {
|
||||
return update(old, {
|
||||
items: {
|
||||
|
@ -100,6 +100,7 @@ export interface AliasNote {
|
||||
version: "1.0"
|
||||
data: {
|
||||
createdAt: Date | null
|
||||
creationContext: "extension" | "web"
|
||||
personalNotes: string
|
||||
websites: Array<{
|
||||
url: string
|
||||
|
Loading…
x
Reference in New Issue
Block a user