Leveraging React Keys to handle animation triggers
React keys are not only useful for keeping track of components, you can also use utilise them for triggering CSS animations when props change.
React keys are not only useful for keeping track of components, you can also use utilise them for triggering CSS animations when props change.
Next.js API routes provide huge scope for building functionality outside of normal pages. They can be leveraged not only for typical API behaviours like POST or GET requests, but when combined with rewrites can be a fantastic way to generate static files which need to fetch data from other sources. In this post I run through one approach to building sitemaps from markdown based blog.
Next.js v12.1 has been released with the highly requested feature to manually trigger static regeneration and purge the cache instead of relying on visitors to regenerate after the invalidation time has been exceeded. Let's explore how we can leverage this with headless WordPress...
This is one of those events that you can only chalk up to experience, and one you will never repeat after the fact. When importing into WordPress using custom scripts, typically during a migration task for a new build, a WordPress constant unbeknown to me at the time can cause chaos...