TF-838 Add adr for refactor refresh change to sync state
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user