From 851c7aec81f18f14ffba6c572fefe421c2ed96a9 Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 17 Aug 2022 11:29:46 +0700 Subject: [PATCH] TF-838 Add `adr` for refactor refresh change to sync state --- ...4-refactor-refresh-change-to-sync-state.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/adr/0014-refactor-refresh-change-to-sync-state.md diff --git a/docs/adr/0014-refactor-refresh-change-to-sync-state.md b/docs/adr/0014-refactor-refresh-change-to-sync-state.md new file mode 100644 index 000000000..5b8821d48 --- /dev/null +++ b/docs/adr/0014-refactor-refresh-change-to-sync-state.md @@ -0,0 +1,21 @@ +# 14. Refactor RefreshChange to sync State + +Date: 2022-08-17 + +## Status + +Accepted + +## Context + +- `State` is updated asynchronously on the server so after performing operations on `Email` the data is not fully updated. + +## Decision + +- Pass the initial `State` to the result after performing operations with `Email` +- Use `State` in the returned results to perform `RefreshChange` of `Email` and `Mailbox` + +## Consequences + +- `Email` and `Mailbox` data is fully updated. +- `State` is saved synchronously and up to date