Skip to content

Pass resetTranscript to command callbacks

Compare
Choose a tag to compare
@JamesBrill JamesBrill released this 14 Aug 15:54
· 120 commits to master since this release
af3d083

Command callbacks do not have access to the resetTranscript function as they have to be defined before resetTranscript is returned by useSpeechRecognition. This PR addresses this problem by passing resetTranscript to the command callbacks as the last argument. This is put inside an object to allow further properties to be passed in future. Intended to address #53