{"action":"created","issue":{"url":"https://api.github.com/repos/prakhar1989/react-tags/issues/14","labels_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/14/comments","events_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/14/events","html_url":"https://github.com/prakhar1989/react-tags/issues/14","id":99673795,"number":14,"title":"Async suggestions","user":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-07T15:41:36Z","updated_at":"2015-08-07T16:37:02Z","closed_at":null,"body":"Use case: tag suggestions based on (potentially thousands of) tags used elsewhere.\r\n\r\nI'm going to fork and implement this, is a PR for this acceptable? Is this api good?\r\n\r\n```js\r\n<ReactTags\r\n  tags={tags}\r\n  suggestions={this.state.loading ? this.state.suggestions : []}\r\n\r\n  loading={this.state.loading}\r\n  loadingMessage=\"Loading...\"\r\n  onIncompleteInput={(text) => undefined}\r\n  />\r\n```\r\n\r\nIf `loading` is truthy, display an additional item at the end of the suggestions with the loading class.\r\n\r\nAdditional classes: \r\n\r\n - `ReactTags__tagInput--loading`\r\n  - use case: spinner on right side of input\r\n - `ReactTags__suggestions--loading` \r\n  - use case: change background color, etc.\r\n - `ReactTags__loading-indicator`\r\n  - use case: style the loadingMessage (could be an icon or whatever)."},"comment":{"url":"https://api.github.com/repos/prakhar1989/react-tags/issues/comments/128758674","html_url":"https://github.com/prakhar1989/react-tags/issues/14#issuecomment-128758674","issue_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/14","id":128758674,"user":{"login":"prakhar1989","id":649249,"avatar_url":"https://avatars.githubusercontent.com/u/649249?v=3","gravatar_id":"","url":"https://api.github.com/users/prakhar1989","html_url":"https://github.com/prakhar1989","followers_url":"https://api.github.com/users/prakhar1989/followers","following_url":"https://api.github.com/users/prakhar1989/following{/other_user}","gists_url":"https://api.github.com/users/prakhar1989/gists{/gist_id}","starred_url":"https://api.github.com/users/prakhar1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakhar1989/subscriptions","organizations_url":"https://api.github.com/users/prakhar1989/orgs","repos_url":"https://api.github.com/users/prakhar1989/repos","events_url":"https://api.github.com/users/prakhar1989/events{/privacy}","received_events_url":"https://api.github.com/users/prakhar1989/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T16:37:02Z","updated_at":"2015-08-07T16:37:02Z","body":"@brigand: Looks good and I'm definitely up for accepting the PR. Quick note about the API.. what does the `onIncomepleteInput` prop required for?"}}