Code Review Videos > How I Fixed

How To Throttle NextJS 14 generateStaticParams

I recently finished a really big refactoring from NextJS 13 to NextJS 14, mostly prompted by the server actions stuff, allowing me to entirely drop a publicly exposed GraphQL service, and do everything in backend Postgres. That all worked wonderfully. Very pleased with that – any time I can delete stuff and yet maintain the … Read more

How I Fixed: (WARN) Define ts-jest config under globals is deprecated.

You know the drill: leave the office for the day on Wednesday, everything works. Open the laptop Thursday morning, errors everywhere. No? It can’t just be me… surely. Well, today’s issue was when I ran my Jest tests, all of a sudden I started to see this: And this kinda tells you what is wrong. … Read more

[How I Fixed]: Warning: You provided a checked prop to a form field without an onChange handler.

Today’s error is likely going to make you want to kick yourself. I certainly felt like quite a wally after realising my mistake. But I do like to blog these as I hope that by doing so, I shame myself into remembering the solution in the future. OK, the error message: It doesn’t massively impact … Read more

How I Fixed: error TS2551: Property ‘toEqual’ does not exist on type ‘Assertion’. Did you mean ‘equal’?

If you’re working with Cypress and Jest in the same project, TypeScript may throw errors that the standard Jest assertions are not valid types on the Assertion class. The error I get looks like this: Though in the IDE, even before running the tests, you will likely see something like this: This is a pretty … Read more