| Definition of the problem Currently, when performing offline mutate operation we going to apply optimistic response updates twice. This approach also requires users to pass the global cache update function, which is not convenient. Solution We can return error to the user and check network state directly in the helper making. Offline link then will be able to enqueue the changes as always but this time we going to know that this operation was marked as offline. This will help us to introduce server state aware offline cases where developers can specify some function that will quality changes to be enqueued to offline queue after network request. |