Posts for June 2023

Published: June 29 2023

Next.js 13 - Fix for client component ('use client') hangs when fetching data in useEffect hook

I ran into a weird problem this morning that had me stumped for a few hours. One of my client components was causing Chrome to lock up and max out my CPU without giving me any error message.
Published: June 20 2023

Vanilla JS - Wrap Object Methods in Try/Catch to Handle Errors in JavaScript

I created the below function recently to encapsulate error handling logic for multiple JS object methods in a single place.
Published: June 09 2023

Fix for MongooseServerSelectionError: connect ECONNREFUSED ::1:27017

Just ran into this error after updating from Node 16 to Node 18.
Published: June 06 2023

Add Google AdSense to a Single Page App - React, Angular, Vue, Next etc...

I recently integrated Google AdSense into my AngularJS blog and this is how I got it working.
Supported by