From fda1b538b54048de0beeb6a2226748b1f2a412b7 Mon Sep 17 00:00:00 2001 From: Balazs Bajorics <2226774+balazsbajorics@users.noreply.github.com> Date: Mon, 6 May 2024 14:54:30 +0200 Subject: [PATCH] making the loader data tracing friendly --- app/routes/_index.jsx | 10 +++++----- app/routes/trippy-trails-template.jsx | 9 ++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/routes/_index.jsx b/app/routes/_index.jsx index 4ad3827..54c5ac8 100644 --- a/app/routes/_index.jsx +++ b/app/routes/_index.jsx @@ -70,11 +70,11 @@ export const TestimonialCard = ({ ) export default function LandingPage() { - const { - testimonials, - recommendedProducts, - featuredCollections, - } = useLoaderData() + const loaderData = useLoaderData() + const { testimonials } = loaderData + const { recommendedProducts } = loaderData + const { featuredCollections } = loaderData + return (