Toggle Animation on Click with Dynamic Height 23 Dec 2024 Toggle Animation on Click with Dynamic Height This is to implement the expand/collapse of an element with animation. For example, when a user clicks on a button, some content shows up
Query PSQL JSON Field 02 Aug 2024 Query PSQL JSON Field We recently created a table with JSON field in our Rails app. When the time comes that we need to query the table to find
React Hooks Not to Run on Initial Load 08 May 2023 React TypeScript React Hooks Not to Run on Initial Load There are times that a page would error out if on initial load, it renders more than once. Rendering more than once unnecessarily is always
Extending build-in ruby classes in Rails 01 Feb 2023 Ruby Ruby on Rails Extending build-in ruby classes in Rails It's a useful skill to extend build-in ruby classes in Rails. And it turns out to be fairly straightforward. We're going
Sidekiq Server Side Middleware 30 Oct 2022 Ruby Ruby on Rails Sidekiq Sidekiq Server Side Middleware Our team recently has converted all our background jobs from delayed job to Sidekiq. There are many things that we have learned along the way.