From 96e926a7913ebaa21d90dc331e0b59062deca06c Mon Sep 17 00:00:00 2001 From: Hangzhi Yu <hangzhi@protonmail.com> Date: Sun, 5 Mar 2023 20:39:36 +0100 Subject: [PATCH] Change default Apollo network policy --- CHANGELOG.rst | 8 ++++++++ aleksis/core/frontend/app/apollo.js | 1 + 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 113e10967..524cc0485 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog`_, and this project adheres to `Semantic Versioning`_. +Unreleased +---------- + +Changed +~~~~~~~ + +* Change default network policy of the Apollo client to `cache-and-network`. + `3.0b1` - 2023-02-27 -------------------- diff --git a/aleksis/core/frontend/app/apollo.js b/aleksis/core/frontend/app/apollo.js index c14ba118d..1b23d43fb 100644 --- a/aleksis/core/frontend/app/apollo.js +++ b/aleksis/core/frontend/app/apollo.js @@ -90,6 +90,7 @@ const apolloOpts = { vm.$root.offline = true; } }, + fetchPolicy: "cache-and-network", }, }, }; -- GitLab