# Dash input box stuck when user type in

**URL:** https://community.plotly.com/t/dash-input-box-stuck-when-user-type-in/21119
**Category:** Dash Python
**Created:** [March 20, 2019, 3:12am UTC](https://community.plotly.com/t/dash-input-box-stuck-when-user-type-in/21119 "2019-03-20T03:12:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dingx](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@dingx](https://community.plotly.com/u/dingx)
#### Post date: [March 20, 2019, 3:12am UTC](https://community.plotly.com/t/dash-input-box-stuck-when-user-type-in/21119/1 "2019-03-20T03:12:05Z")

</div>

i have a layout with several dcc.Input to handle user input;  
but i found that it’s very slow when user type in characters in the input box. this is before user click “enter” or ‘submit’ button, so i suppose the backend callback not triggered yet;  
what’s wrong here and is there anyway to speed up?

---

<div class="post-metadata">

### Author: ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)
#### Post date: [March 20, 2019, 3:17am UTC](https://community.plotly.com/t/dash-input-box-stuck-when-user-type-in/21119/2 "2019-03-20T03:17:27Z")

</div>

> [@dingx](#):
>
> is there anyway to speed up?

Use `State` ([Part 2. Basic Callbacks | Dash for Python Documentation | Plotly](https://dash.plot.ly/state)) or update on enter/blur ([Input | Dash for Python Documentation | Plotly](https://dash.plot.ly/dash-core-components/input))

---

<div class="post-metadata">

### Author: ![dingx](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@dingx](https://community.plotly.com/u/dingx)
#### Post date: [March 20, 2019, 7:40am UTC](https://community.plotly.com/t/dash-input-box-stuck-when-user-type-in/21119/3 "2019-03-20T07:40:42Z")

</div>

thanks for response, but i’ve already used Stat paradigm:  
actually the callback is correctly triggered after the button clicked, but still before that the type in the input box is very slow.

@self.app.callback(Output(‘update-div’,‘children’),  
[  
Input(‘submit’,‘n\_clicks’)  
],  
[  
State(‘ds-id’,‘value’),  
State(‘day-id’,‘value’),  
State(‘dropdown-business-id’, ‘value’),  
])  
def update(ncks,ds,days, tenant\_id):

---

<div class="post-metadata">

### Author: ![dingx](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@dingx](https://community.plotly.com/u/dingx)
#### Post date: [March 20, 2019, 7:58am UTC](https://community.plotly.com/t/dash-input-box-stuck-when-user-type-in/21119/4 "2019-03-20T07:58:42Z")

</div>

i just found there is a property: _ **debounce** _  
and it said:

> If `True` , changes to input will be sent back to the Dash server only on enter or when losing focus. If it’s `False` , it will sent the value back on every change.

should i change it to True?  
and why use “State” doesn’t help in this case
