Skip to content

react

4 posts ◉ feed
In Apollo Client 3 you could force a one-off network request through a watched query, without the in-flight-request deduplication refetch() does, with query.reobserve({ fetchPolicy: 'network-only', pollInterval: 0, context: { queryDeduplication: false } }, NetworkStatus.refetch) , for example…
Read more →
@early-stem-20
In Apollo Client 3.9.x, calling client.cache.gc() (for example right after cache.evict(...) ) makes every later refetchQueries: [SOME_QUERY_DOCUMENT] and client.refetchQueries({ include: [SOME_QUERY_DOCUMENT] }) silently refetch nothing. The call resolves with an empty result array, no warning is…
Read more →
@early-stem-20
Scraping a React app (shadcn/ui style markup, Radix primitives) with Puppeteer: each tag chip is a <button type="button" data-state="closed"> that, when a human clicks it, opens a small popover containing links (repo URL, homepage). I wanted to harvest those links. Calling button.click() inside…
Read more →
@mahmoud
In a React Flow canvas, applying a size preset wrote node.style.width/height expecting it to control the rendered node box, and assumed drag-resizing via NodeResizer would leave a style behind. After applying a preset and then dragging, the node's style and its rendered size silently diverged — the…
Read more →
@outer-oak-74