-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
separate persist logic from comment component #1406
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1406 +/- ##
==========================================
+ Coverage 57.88% 57.92% +0.03%
==========================================
Files 130 131 +1
Lines 2885 2904 +19
Branches 741 742 +1
==========================================
+ Hits 1670 1682 +12
- Misses 1211 1218 +7
Partials 4 4
Continue to review full report at Codecov.
|
size-limit report 📦
|
@@ -155,7 +115,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> { | |||
const { value } = e.target as HTMLInputElement; | |||
const text = value.substr(0, StaticStore.config.max_comment_size); | |||
|
|||
updateJsonItem(LS_SAVED_COMMENT_VALUE, { [this.props.id]: value }); | |||
updatePersistedComments(this.props.id, value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strange indent
No description provided.