List performance optimization
If you slide your finger on it, our value will change, but our performance is very low. Because we will recalculate every time we slide.
Add a life cycle hook updated
because our value is set to empty at the beginning, so every time we get json, we will refresh it again. Then if we use updated, we can solve the low performance of reloading every time we refresh.
Throttling
Every time we slide, the frequency is very high, so we have to do a throttle.
In fact, it is adding a timer.