1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Mark functions causing side effects

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-07-19 08:19:14 +03:00
parent 9a073190c0
commit b2b9d021c7
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
4 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,8 @@ const callForHelmChartReadmeInjectable = getInjectable({
return details.readme; return details.readme;
}, },
causesSideEffects: true,
}); });
export default callForHelmChartReadmeInjectable; export default callForHelmChartReadmeInjectable;

View File

@ -21,6 +21,8 @@ const callForHelmChartVersionsInjectable = getInjectable({
return details.versions; return details.versions;
}, },
causesSideEffects: true,
}); });
export default callForHelmChartVersionsInjectable; export default callForHelmChartVersionsInjectable;

View File

@ -10,8 +10,8 @@ export type CallForHelmCharts = () => Promise<HelmChart[]>;
const callForHelmChartsInjectable = getInjectable({ const callForHelmChartsInjectable = getInjectable({
id: "call-for-helm-charts", id: "call-for-helm-charts",
instantiate: (): CallForHelmCharts => async () => await listCharts(), instantiate: (): CallForHelmCharts => async () => await listCharts(),
causesSideEffects: true,
}); });
export default callForHelmChartsInjectable; export default callForHelmChartsInjectable;

View File

@ -14,6 +14,7 @@ export type CallForHelmChartValues = (
const callForHelmChartValuesInjectable = getInjectable({ const callForHelmChartValuesInjectable = getInjectable({
id: "call-for-helm-chart-values", id: "call-for-helm-chart-values",
instantiate: (): CallForHelmChartValues => getChartValues, instantiate: (): CallForHelmChartValues => getChartValues,
causesSideEffects: true,
}); });
export default callForHelmChartValuesInjectable; export default callForHelmChartValuesInjectable;