Richard Scarrott

Frontend Web Developer, London

@richardscarrott
richardscarrott commented on issue cypress-io/cypress#7693 15 days ago

@ncknuna I found this issue when attempting to define the exact same thing as I found myself constantly checking have.length and is.visible. I'm no…

@richardscarrott
richardscarrott commented on pull request ReactTraining/react-router#7822 18 days ago

@jonkoops ha yes that's largely my thinking too, I don't know why React isn't either removing that from the docs or providing a solution.

@richardscarrott
richardscarrott starred taskforcesh/bullmq 18 days ago

BullMQ - Premium Message Queue for NodeJS based on Redis

TypeScript 1.4k Updated May 8

@richardscarrott
richardscarrott commented on pull request ReactTraining/react-router#7822 18 days ago

I'm not 100% sure what your use case is here so ignore me if it's not relevant, but I'm not sure useMemo is safe if you're wanting to perform chang…

@richardscarrott
richardscarrott commented on pull request sindresorhus/p-throttle#11 18 days ago

@szmarczak @sindresorhus I think it's still fair to say pThrottle's memory footprint is unbounded as mentioned here #2 e.g. // pthrottle-mem.js // …

@richardscarrott
richardscarrott commented on issue segmentio/analytics.js#656 a month ago

@pbassut we're using the following middleware in production which seems to be working ok. export const contextTraitsMiddleware = () => createMiddle…

@richardscarrott

Add Rate Limiting To Your GraphQL Resolvers 💂‍♀️

TypeScript 318 Updated Apr 30

@richardscarrott
richardscarrott commented on pull request apollographql/apollo-client#6576 2 months ago

@ndreckshage @jamescharlesworth you're right you can't use renderToNodeStream directly but you can try wrapping it in a promise as I've done here h…

@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 2 months ago
1 commit to master
  • @richardscarrott 093d854
    Create print-parade-access-token.js
@richardscarrott

Curated list of awesome Template Literal Types examples

389 Updated May 8

@richardscarrott

JavaScript 12 Updated Mar 5

@richardscarrott

A library of example functions to use with the Segment Developer Center

JavaScript 48 Updated May 6

@richardscarrott
richardscarrott commented on issue GoogleChrome/web-vitals#119 2 months ago

HI @philipwalton thanks for the advice. I had a bit of a think about your last point re: hiding the content while it's loading and realised I had i…

@richardscarrott
richardscarrott commented on issue GoogleChrome/web-vitals#119 2 months ago

Wow, I've spent months pondering why google search console flags so many of our SPA's pages as having poor CLS but lab data (lighthouse) and perfor…

@richardscarrott
Reduce the bundle size #86

Currently requiring 'stackdriver-errors-js' results in quite a lot of code being pulled in -- it's one of our largest dependencies. The above is g…

@richardscarrott
richardscarrott opened an issue in cloudflare/react-gateway 2 months ago
Server side rendering (SSR) fails when GatewayDest is rendered before the Gateway component #49

I've been using react-gateway for years because of it's support for SSRing and it's been great, however I've recently run into a bug where the comp…

@richardscarrott
richardscarrott starred preactjs/preact 2 months ago

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

JavaScript 29k 4 issues need help Updated May 8

@richardscarrott
richardscarrott starred TehShrike/deepmerge 2 months ago

A library for deep (recursive) merging of Javascript objects

JavaScript 2.2k 1 issue needs help Updated May 7

@richardscarrott
richardscarrott opened an issue in richardscarrott/node-verror 3 months ago
Rewrite #1

I've merely forked and stripped out a bunch of code from node-verror but the repo is a bit of a mess tbh. Would be good to just rewrite a) the test…

@richardscarrott
richardscarrott pushed to master in richardscarrott/node-verror 3 months ago
1 commit to master
@richardscarrott
richardscarrott pushed to master in richardscarrott/node-verror 3 months ago
1 commit to master
  • @richardscarrott 93dbeac
    Remove esm version from package.json
@richardscarrott
richardscarrott pushed to master in richardscarrott/node-verror 3 months ago
2 commits to master
@richardscarrott
richardscarrott commented on issue expressjs/cookie-session#148 3 months ago

@bettafish15 yeh I ended up using maxAge too as it turns out it sets Expires under the hood rather than Max-Age anyway 👍

@richardscarrott
richardscarrott commented on issue expressjs/cookie-session#148 3 months ago

@bettafish15 given you're passing an absolute date for the expiry does this mean if your server ran for more than a day the date would be in the pa…