Unit of Work for Flow, LWC Error Logging Framework and Christie Fidura podcast
Welcome to this week's CloudBites Weekly, written and published from my hotel room after a couple of manic but great days at the Salesforce Agentforce World Tour and TDX in London. For everyone I caught up with, it was great to see you; for everyone I missed, I am sorry and look forward to catching up at the next event. So with that, let's dive into this week's edition.
Unit of Work for Flows
Piotr Kożuchowski and the team contributing to the Apex Libra framework announced a new feature this week - Unit of Work for Flows. Unit of Work is a development pattern that bundles database commits into a single transaction rather than multiple independent ones, helping to reduce unnecessary calls to the database. For developers familiar with Apex Libra or FFLib, it is one of the core patterns within these frameworks.
You can read all about the update as well as find the documentation for this in Piotr's post here. One of the big criticisms people have made of Flow is that there is not the same level of established best practices and patterns for scalable development as there is in Apex, so seeing initiatives like this is really good to help enable those developing with Flow to also follow good software development architecture.
Lightning Web Components Error Logging Framework
Kapil Batra from the SalesforceBolt.com blog released a new error logging framework for Lightning Web Components this week to help make it easier to capture, handle, and surface client-side errors in your LWCs.
Recommended by LinkedIn
You can see all the details of the framework, including the code base, tutorials and a demo video from Kapil's post here. With TypeScript and state management also becoming GA in LWC later this year, I am hoping we might start to see more patterns and frameworks for LWC that enable developers to do a lot more with fewer errors.
A now time to relax
It's a shorter edition this week as I have been out for a few days and am very much looking forward to a weekend decompressing. If you are travelling back from the event today, or find yourself craving more Salesforce content, try the latest CloudBites Conversations episode with Christie Fidura that was released yesterday.
Christie is the Director of Global Developer Programmes at Salesforce and helps drive the advocacy and engagement we all see through events like TDX and Dreamforce. If you haven't had the pleasure of meeting her, watch or listen to get to know her and how amazing she is. If you already know Christie, then you will know how good the episode will be. Watch at https://www.youtube.com/watch?v=Nzbe3-UOzHA, listen at https://pod.co/cloudbites-conversations/christie or search CloudBites Conversations in your podcast player. Have a great weekend everyone!