mahjong wins 3 black scatter demo pragmatic We can cache data at a configurable time interval and also auto fetch it. By using React Query, we don’t need to do that any more, and it also reduces the need for a lot of boilerplate code. The demo source code is available here. When the input parameters change, then polling should stop to initiate a new API call, and restart in case of any failure..