From: Dessalines Date: Sat, 3 Aug 2019 20:26:20 +0000 (-0700) Subject: Adding a debounce. X-Git-Url: http://these/git/%22https:/image.com/%22%7B%7D/static/%7Bicon?a=commitdiff_plain;h=5a1e8aa645c9f0898e765b45c2f362308292db26;p=lemmy.git Adding a debounce. --- diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 9b33c6e1..54b3ca44 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -4,7 +4,7 @@ import { Subscription } from "rxjs"; import { retryWhen, delay, take } from 'rxjs/operators'; import { PostForm as PostFormI, Post, PostResponse, UserOperation, Community, ListCommunitiesResponse, ListCommunitiesForm, SortType, SearchForm, SearchType, SearchResponse } from '../interfaces'; import { WebSocketService, UserService } from '../services'; -import { msgOp, getPageTitle } from '../utils'; +import { msgOp, getPageTitle, debounce } from '../utils'; import * as autosize from 'autosize'; interface PostFormProps { @@ -87,7 +87,7 @@ export class PostForm extends Component {
- + {this.state.suggestedTitle &&
copy suggested title: {this.state.suggestedTitle}
} @@ -96,7 +96,7 @@ export class PostForm extends Component {
-