recliner

Code. Eat. Sleep.

Created a custom fetch composable (wrapper) for useFetch named useFletch.

Re-used the same Yup object schema for validating server and client input.

Getting Nuxt 3 to load sites from database with custom hostnames on the edge.

refactor: sql to pinia data transformer

Updated the transformer to make it more generic and re-usable. The transformer takes database rows and converts their column name aliases back to original name and normalizes the structure. See: http://web.archive.org/web/20211109135144/https://forum.vuejs.org/t/vuex-best-practices-for-complex-objects/10143/2

{
user: {
1234: {... }, // ids as keys
46473: { name: 'Tom', topics: [345, 3456] } // keep only ids of nested items.
}
}

Posted on IH https://www.indiehackers.com/post/what-i-learned-from-building-115-developer-tools-f4568e8b54