- useSimulations(
ids?: string[],
): [
IFrontSimulations,
{
addOneSimulation: (simulation: IFrontNewSimulation) => Promise<void>;
delOneSimulation: (
simulation: IFrontMutateSimulationsItem,
) => Promise<void>;
errorSimulations: Error;
loadingSimulations: boolean;
mutateOneSimulation: (
simulation: IFrontMutateSimulationsItem,
revalidate?: boolean,
) => Promise<void>;
},
] Returns [
IFrontSimulations,
{
addOneSimulation: (simulation: IFrontNewSimulation) => Promise<void>;
delOneSimulation: (
simulation: IFrontMutateSimulationsItem,
) => Promise<void>;
errorSimulations: Error;
loadingSimulations: boolean;
mutateOneSimulation: (
simulation: IFrontMutateSimulationsItem,
revalidate?: boolean,
) => Promise<void>;
},
]
Simulations
Use simulations