- useSavedViews(): {
handleCreateSavedView: ((...args: [name: string, description: string, color: string, view: State.Stage[], onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)]) => Promise<void>);
handleDeleteView: ((nameValue: string, onDeleteSuccess: ((deletedId: string) => void)) => void);
handleUpdateSavedView: ((initialName: string, name: string, description: string, color: string, onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
lastLoadedAt: number;
lastModifiedAt: number;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)) => void);
isCreatingSavedView: boolean;
isDeletingSavedView: boolean;
isUpdatingSavedView: boolean;
}
-
Returns {
handleCreateSavedView: ((...args: [name: string, description: string, color: string, view: State.Stage[], onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)]) => Promise<void>);
handleDeleteView: ((nameValue: string, onDeleteSuccess: ((deletedId: string) => void)) => void);
handleUpdateSavedView: ((initialName: string, name: string, description: string, color: string, onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
lastLoadedAt: number;
lastModifiedAt: number;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)) => void);
isCreatingSavedView: boolean;
isDeletingSavedView: boolean;
isUpdatingSavedView: boolean;
}
-
handleCreateSavedView: ((...args: [name: string, description: string, color: string, view: State.Stage[], onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)]) => Promise<void>)
-
- (...args: [name: string, description: string, color: string, view: State.Stage[], onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)]): Promise<void>
-
Parameters
-
Rest
...args: [name: string, description: string, color: string, view: State.Stage[], onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)]
Returns Promise<void>
-
handleDeleteView: ((nameValue: string, onDeleteSuccess: ((deletedId: string) => void)) => void)
-
- (nameValue: string, onDeleteSuccess: ((deletedId: string) => void)): void
-
Parameters
-
nameValue: string
-
onDeleteSuccess: ((deletedId: string) => void)
-
- (deletedId: string): void
-
Returns void
Returns void
-
handleUpdateSavedView: ((initialName: string, name: string, description: string, color: string, onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
lastLoadedAt: number;
lastModifiedAt: number;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)) => void)
-
- (initialName: string, name: string, description: string, color: string, onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
lastLoadedAt: number;
lastModifiedAt: number;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)): void
-
Parameters
-
initialName: string
-
name: string
-
description: string
-
color: string
-
onSuccess: ((savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
lastLoadedAt: number;
lastModifiedAt: number;
name: string;
slug: string;
viewStages: readonly string[];
}) => void)
-
- (savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
lastLoadedAt: number;
lastModifiedAt: number;
name: string;
slug: string;
viewStages: readonly string[];
}): void
-
Parameters
-
savedView: {
color: string;
createdAt: number;
datasetId: string;
description: string;
id: string;
lastLoadedAt: number;
lastModifiedAt: number;
name: string;
slug: string;
viewStages: readonly string[];
}
-
Readonly
color: string
-
Readonly
createdAt: number
-
Readonly
datasetId: string
-
Readonly
description: string
-
Readonly
id: string
-
Readonly
lastLoadedAt: number
-
Readonly
lastModifiedAt: number
-
Readonly
name: string
-
Readonly
slug: string
-
Readonly
viewStages: readonly string[]
Returns void
Returns void
-
isCreatingSavedView: boolean
-
isDeletingSavedView: boolean
-
isUpdatingSavedView: boolean
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.