trestletech/shinyAce

Time delay in reactive input reflecting editor contents

vixr opened this issue · 2 comments

vixr commented

In the current version, I've noticed there's a time delay in the editor contents.

I have an actionButton that triggers an evaluation of input$myAce where myAce is the identity of the shinyAce widget.

I've noticed that if I wait a while after editing before pressing the actionButton, input$myAce evaluates correctly to the current contents of the editor. If I press the actionButton too quickly after editing, the contents of input$myAce does not reflect the current contents of the editor and instead reflects the contents from roughly ~5-10 seconds earlier.

I observe the same. Very annoying. Any workarounds known? thanks

vnijs commented

If this is still an issue, try setting debounce to a different value when you call shinyAce. The default is 1000 milliseconds. Re-open the issue if needed