We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently,
const queryId = await Textile.contacts.search(query, options) return eventChannel<SearchEvent>((emitter) => { const resultsSub = Textile.events.addContactQueryResultListener((receivedQueryId, contact) => { if (receivedQueryId === queryId) { emitter({ contact, type: 'contact' }) } }) const errorSub = Textile.events.addQueryErrorListener((receivedQueryId, error) => { if (receivedQueryId === queryId) { emitter({ error, type: 'error' }) emitter(END) } }) const doneSub = Textile.events.addQueryDoneListener((receivedQueryId) => { if (receivedQueryId === queryId) { emitter(END) } }) return () => { Textile.contacts.cancelSearch() resultsSub.cancel() errorSub.cancel() doneSub.cancel() } })
Could we just have,
const queryId = await Textile.contacts.search(<query>, onResult, onDone, onError)
related:
#93
The text was updated successfully, but these errors were encountered:
deprecated api
Sorry, something went wrong.
andrewxhill
No branches or pull requests
Currently,
Could we just have,
related:
#93
The text was updated successfully, but these errors were encountered: