Skip to content

Resolve "Add 'immer' library to our dependencies list"

What does this MR do?

Apollo Client 2.6 introduced immutability of cache result objects, which will be a requirement for Apollo Client 3.0. Blog post with rationale

This change is already picked by GitLab in !19236 (merged) and we're required to update our relevant writeQuery calls to be immutable

The RFC was created in order to make a work with immutable objects easier. We decided to go with Immer library to handle immutability.

Related issues: #196146 (closed), gitlab-org/frontend/rfcs#34 (closed)

Edited by Natalia Tepluhina

Merge request reports