Mark Erikson

Results 1264 comments of Mark Erikson

Yeah, we have no actual answer for that with the App Router right now, largely due to the lack of API features needed to make that even possible. See Lenz's...

Note that we now have official docs on how to set up Redux with Next.js and the App Router correctly: - https://redux-toolkit.js.org/usage/nextjs

Maybe some useful tricks to learn from here: - https://github.com/next-nexus-org/next-nexus also reffing this: - #4676

@aryaemami59 fyi the "ts/json/etc should be the same" test seems to be flaky - sometimes it can't find `example.ts`. Some kind of filesystem race condition, maybe?

@semimikoh sure, sounds good!

Design questions: - What if we actually specified `"optimistic"` or `"pessimistic"` per entry? Would that simplify the internal implementation any? - What happens if the user defined `onQueryStarted` themselves? How...

I suppose we _could_ just pass `updateQueryData` in as an argument to the `applyOptimistic` callback - it probably ends up being the same thing as defining the object, but without...

Copy-pasting more brain-dumping from Discord: - almost all of our internal update patterns have been "update this one specific cache entry". similar to how we've always essentially treated our endpoint...

Yeah, @EskiMojo14 tried prototyping something, but I believe ran into problems with type circularity. We really want it all to be typesafe, but it sounded like it ran into TS...

@soggybeef that sounds very odd. Could you provide a CodeSandbox or repo that shows this happening?