You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when initialising the hook, you pass the text to be spoken as children parameter. my text is coming from a component prop. when the prop is changed after rendering, the play() method still speaks the original text.
there is a set method returned by the hook, which can be used to update e.g. the language, but there is no way to update the text content. having a method like set.children() would work for me.
problem
when initialising the hook, you pass the text to be spoken as
children
parameter. my text is coming from a component prop. when the prop is changed after rendering, theplay()
method still speaks the original text.there is a
set
method returned by the hook, which can be used to update e.g. the language, but there is no way to update the text content. having a method likeset.children()
would work for me.reproduction
expected result: says "hello"
actual result: says "hi"
The text was updated successfully, but these errors were encountered: