In a previous post about using tracks to implement drawer information boxes, I’ll show you how to use the change of state feature to achieve a similar list slide.

The implementation of sliding into the list is relatively simple, mainly using the function of changing the state. Compared with track, its setting is simpler, so it is not recommended to use track for some simple state changes, but to change the state. In the foreground, the execution of the action is asynchronous. If you want to execute the next action after the previous action is completely completed, you need to use callback, or add a delay like in today’s demo. By the way, you can also add a callback to an action group, so that the next action is executed after all the actions in the action group are completed, but remember to return in the action group, you can have no return parameters but must have the action that sets the return result.