Dylan Wulf

Results 68 comments of Dylan Wulf

@i8ramin I don't have any way to cancel the network request, but I did find a way to work around issue https://github.com/apollographql/apollo-client/issues/2813 I just hold onto the query variables in...

@hwillson Thank you for checking in! I don't think this is as big of a problem with modern-day apollo client, but it's still something which I feel would make sense...

I prefer to avoid MockedProvider entirely and instead go with the approach outlined here: https://medium.com/free-code-camp/a-new-approach-to-mocking-graphql-data-1ef49de3d491 This is the approach I use in all my client-side tests. It automatically provides mock...

This might help: https://github.com/appmotion/apollo-augmented-hooks

@Akryum Looks like it's planned for apollo client v3.5: https://github.com/apollographql/apollo-client/blob/main/ROADMAP.md#35 Also, a general tip: please make sure to wrap `@defer` and `@stream` in backticks like this: `` `@defer` `` ``...

You can disable normalization on a type-by-type basis by returning `null` from the `dataIdFromObject` function

Hey guys, I think I found a pretty good solution here: ``` observeElementOffset: (instance, cb) => observeWindowOffset(instance, (offset) => cb(offset - heightOfStuffAboveList)); ``` https://codesandbox.io/s/reverent-jackson-spo5iu?file=/src/App.tsx You still have to know (or...

Unfortunately my solution does not seem to work when using `initialOffset`, `scrollToOffset`, `scrollToIndex`, etc

I was able to fix the scrolling methods by providing a custom `scrollToFn`: ``` scrollToFn: (offset, canSmooth, instance) => { window.scrollTo({ top: offset + window.scrollY + (virtualListRef.current?.getBoundingClientRect().top ?? 0), behavior:...

@dannycochran Thank you for sharing!