![]() ![]() Thunks are best used for complex synchronous logic, and simple to moderate async logic such as making a standard AJAX request and dispatching actions based on the request results. So, they should not generally be used for initializing persistent connections like websockets, and you can't use them to respond to other actions. They also cannot see other dispatched actions. ![]() Thunks are "one-shot" functions, with no sense of a lifecycle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |