This branch improves the performance of the app by adding debounce() to reactive expressions.
Changes
The changes made in this PR are:
Wrap the query filter reaction expression inside the debounce() function. The query reactive expression will only be computed after .75 s of inactivity from users (i.e. users do not adjust the filters in the collision map panel for 0.75 seconds).
Check
[x] (If UI & data are updated) The UI & data includes Traditional Chinese translation, with translation terms wrapped in i18n$t() and terms added to translation_zh.csv
[x] The travis.ci and R CMD checks pass.
Note
The optimal debounce time window could be figured out by considering how fast people will check/uncheck the boxes for the vehicle type/collision type, while balancing the time to generate the output.
Summary
This branch improves the performance of the app by adding
debounce()
to reactive expressions.Changes
The changes made in this PR are:
debounce()
function. The query reactive expression will only be computed after .75 s of inactivity from users (i.e. users do not adjust the filters in the collision map panel for 0.75 seconds).Check
i18n$t()
and terms added totranslation_zh.csv
Note
The optimal debounce time window could be figured out by considering how fast people will check/uncheck the boxes for the vehicle type/collision type, while balancing the time to generate the output.