We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4aa29 commit e99ae89Copy full SHA for e99ae89
package/src/hooks.tsx
@@ -206,9 +206,9 @@ export function useSpeechInternal({
206
window.addEventListener("beforeunload", clearQueueUnload);
207
setState({ stopReason: "auto" });
208
highlightRef.current = true;
209
+ if (directiveRef.current.event || directiveRef.current.delay) reset();
210
+ else onStart?.();
211
onBoundary?.({ progress: getProgress(offset, speechText.length) });
- if (directiveRef.current.event || directiveRef.current.delay) return reset();
- onStart?.();
212
}
213
214
async function stopEventHandler() {
0 commit comments