You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the isLoading call. What can I do when I have multiple components relying on the same store that want to call onSearch (via an action) at (relatively) the same time. The second call will come while the store "isLoading" the results for the first call, and thus the second call will do nothing? Is there an Alt way that I can queue up multiple calls while one is taking place?
The text was updated successfully, but these errors were encountered:
@bmhardy i haven't seen any out of the box functionality for this, but you could build the functionality with a concept of a QueueStore that can act as your queue of asynchronous calls you need to make.
You probably want to move the "should make async call" logic into your source as part of your shouldFetch function. And in there you could trigger actions to add to the queue if the SearchStore is loading. Once the store is done loading, you could work off your queue until it's empty.
Can we have the ability to sequentially perform actions that require source retrieval at same time?
Note the isLoading call. What can I do when I have multiple components relying on the same store that want to call onSearch (via an action) at (relatively) the same time. The second call will come while the store "isLoading" the results for the first call, and thus the second call will do nothing? Is there an Alt way that I can queue up multiple calls while one is taking place?
The text was updated successfully, but these errors were encountered: