Mark Erikson

Results 1264 comments of Mark Erikson

@soggybeef I can't immediately reproduce this myself, so if you could provide that sandbox it would help me look into this.

Can you show your store setup? Do you have the `setupListeners()` method being used to handle offline / focus behavior?

@suryateja-7 what happens if you remove the `setupListeners()` line?

Hmm. So essentially what we do for cache lifeycles? ```ts updateCachedData: (isAnyQueryDefinition(endpointDefinition) ? (updateRecipe: Recipe) => mwApi.dispatch( api.util.updateQueryData( endpointName as never, originalArgs as never, updateRecipe, ), ) : undefined) as...

Sure, filed: - https://github.com/reduxjs/redux-toolkit/issues/5151

I don't think we have any desire to make changes here. The closest I can think of would be dispatching `api.util.upsertQueryEntries()` to force the entry to exist. Alternately, you could...

True, but there's no nice way to do it as a single batched multi-patch dispatch right now. @EskiMojo14 did throw together a POC of what that might look like a...

I cloned the project and I do agree I can see that behavior. My first suspicion is that this may be due to Chrome throttling background tabs in some way....

Ohhhh, waitasec. I went in to the RTKQ bundle in `node_modules` and added some logging to the query selectors. I see this output: ``` hook.js:608 Sat Apr 26 2025 18:42:16...

@martynasgz : can you link the RTKQ sandbox? Not sure why a React Query sandbox would be relevant - that's an entirely separate library, completely different implementation.