-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 17. Remove `setState` for reply message | ||
|
||
Date: 2024-03-01 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
- Change from `bool replyEvent` to `ValueNotifier replyEventNotifier`. | ||
- When click on reply button, we will update `replyEventNotifier` and show the reply message. | ||
- Remove `setState` for reply func. | ||
|
||
## Consequences | ||
|
||
- We're make sure for first time click on reply button, it's work well. | ||
- We are limited to 1 use of `setState` for responding to events. | ||
- We're migrating `Chat` to phase out funcs that use setState. | ||
In addition to the reply message, we will continue to migrate other functions |