Commit 95335874 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '331115-leave-apollo-cache-alone-2' into 'master'

Copy data to make immutable for Apollo 3

See merge request gitlab-org/gitlab!65074
parents 8e35045d 2e757679
......@@ -105,7 +105,7 @@ export default {
return this.pipeline;
}
return unwrapPipelineData(this.pipelineProjectPath, data);
return unwrapPipelineData(this.pipelineProjectPath, JSON.parse(JSON.stringify(data)));
},
error(err) {
this.reportFailure({ type: LOAD_FAILURE, skipSentry: true });
......
......@@ -118,7 +118,7 @@ export default {
return this.currentPipeline;
}
return unwrapPipelineData(projectPath, data);
return unwrapPipelineData(projectPath, JSON.parse(JSON.stringify(data)));
},
result() {
this.loadingPipelineId = null;
......
......@@ -5,6 +5,7 @@ export const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(
{},
{
assumeImmutableResults: true,
useGet: true,
},
),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment